Skip to content

EasyJson v1.0.0

Latest
Compare
Choose a tag to compare
@jarroddavis68 jarroddavis68 released this 24 Mar 21:22
· 1 commit to main since this release

πŸŽ‰ What's New in v1.0.0

Initial stable release of EasyJson β€” a fluent and lightweight Delphi library for working with JSON objects more intuitively.

πŸš€ Features

βœ… Fluent interface for JSON creation and manipulation
βœ… Chainable method calls (e.g., .Add(), .Put(), .Get())
βœ… Support for nested JSON objects and arrays
βœ… Automatic type detection for basic types
βœ… Easily serialize and deserialize JSON with built-in helpers
βœ… No external dependencies β€” pure Delphi

πŸ“¦ Installation

Just drop EasyJson.pas into your Delphi project and add it to your uses clause.

πŸ“˜ Example Usage

var
  LJson: TEasyJson;
begin
  // Create an instance of TEasyJson
  LJson := TEasyJson.Create();
  try
    // Populate the JSON object with values using Put()
    LJson.Put('name', 'EasyJson')
         .Put('version', LJson.GetVersion())
         .AddArray('features')
           .Put(0, 'fluent')
           .Put(1, 'lightweight')
           .Put(2, 'delphi');

    // Print the formatted JSON structure
    Writeln(LJson.Format());
  finally
    // Free the JSON object to prevent memory leaks
    LJson.Free;
  end;
end;

🧩 Compatibility

  • Developed/Tested on Delphi 12 and newer
  • No third-party libraries required