toon-converter
Service icon

Toon Converter

Stable version 1.0.0 (Compatible with OutSystems 11)
Uploaded
 on 7 Nov (14 hours ago)
 by 
0.0
 (0 ratings)
toon-converter

Toon Converter

Details
This library provides a compact, token-efficient representation called TOON (Token-Oriented Object Notation) and converters between JSON and TOON.
Read more

Key functions implemented in the library:

  • JSONToTOON(string jsonInput, int indentSize = 2): converts a JSON string to the TOON textual format. Returns empty string for empty input.
  • TOONToJSON(string toonInput, int indentSize = 2): converts TOON back to JSON. Uses Newtonsoft.Json to serialize mixed object graphs.
  • EstimateTokens(string text): crude token estimate (approx. 1 token ˜ 4 chars).
  • JSONToTOONWithStats(string jsonInput, int indentSize = 2): returns TOON output plus estimated token counts and savings in a ConversionResult structure.
Release notes (1.0.0)
License (1.0.0)
Reviews (0)
Team
Other assets in this category