Unit 'fpJsonToPas' Package
[Overview][Types][Classes][Index] [#fcl]

Reference for unit 'fpJsonToPas'

JSON to Pascal code generator

uses

  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.

Related topics

JSONToPascalUsage

  

Using fpjsontopas to generate Pascal classes from JSON


Documentation generated on: Jan 27 2026