TJSONToYaml class
Class for converting JSON data to YAML format
Declaration
TJSONToYaml = classDescription
TJSONToYaml provides functionality to convert JSON data structures into YAML format.
The class can handle all JSON data types including objects, arrays, strings, numbers, booleans, and null values.
The conversion preserves the hierarchical structure and produces properly indented YAML output.
The class supports configurable indentation size and can optionally add a YAML document header (---). Conversion is performed by calling the Convert method with the source JSON data and target output stream.
See also
Properties
TheOutput | protected | |
AddHeader | public | Controls whether to add YAML document header |
IndentSize | public | Number of spaces used for indentation |
Methods
Indent | protected | |
ConvertNull | protected | |
ConvertBoolean | protected | |
ConvertArray | protected | |
ConvertObject | protected | |
ConvertNumber | protected | |
ConvertString | protected | |
DoConvert | protected | |
Push | protected | |
Convert | public | Convert JSON data to YAML format |
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
