Sign in Join
FPDoc Onlineexperiment

fpJsonToPas unit

JSON to Pascal code generator

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.

Classes and records

EJSONToPascalclassException class for JSON to Pascal conversion errors
TJSONToPascalclassMain class for generating Pascal code from JSON data
TPropertyMapclassCollection of property mapping items
TPropertyMapItemclassCollection item representing a single property mapping

Types

TJSONToPascalOptionenumerationOptions controlling JSON to Pascal code generation
TJSONToPascalOptionssetSet of JSON to Pascal generation options

Topics

JSONToPascalUsagetopicUsing fpjsontopas to generate Pascal classes from JSON

Uses

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.