Skip to content

Reference for unit 'fpJsonToPas'

JSON to Pascal code generator

uses

Used units Description
System
Classes
sysutils
fpJson JSON support for Free Pascal.
JsonParser JSON data parser implementation

Overview

The fpJsonToPas unit provides functionality to generate Object Pascal class definitions from JSON data structures. The main class TJSONToPascal analyzes JSON input and creates complete Pascal unit code with classes that can serialize to and from JSON.

The generated Pascal classes include properties for each JSON field, optional load/save methods for JSON serialization, and proper type mappings from JSON types to Pascal types.

Topic Description
JSONToPascalUsage Using fpjsontopas to generate Pascal classes from JSON