Releases: tinyBigGAMES/EasyJson
Releases · tinyBigGAMES/EasyJson
EasyJson v1.0.0
🎉 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