Chimera

 

Chimera is an Open Source (MIT License) library for Delphi XE2+ which provides for tools that facilitate standards compliant data representation and communication.

At the core of Chimera is a fast and cross platform JSON generator/parser (serializer/deserializer). Also included is a series of pubsub server and client components allowing for simple messaging between applications

For more information on json, please visit http://json.org

For more information on pubsub, please visit https://en.wikipedia.org/wiki/Publish%E2%80%93subscribe_pattern

Here is a very simple example of how to use Chimera to parse, change and generate JSON.

uses
  chimera.json;

var
  i : integer;
  obj : IJSONObject;
begin
  obj := JSON('{"firstname":"leonard",'+
              ' "lastname":"nimoy",'+
              ' "email":['+
              '   "spock@enterprise.com",'+
              '   "lazydude@mars.com"]'+
              '}');
  Writeln(obj['firstname']);
  for i := 0 to obj.Arrays['email'].count-1 do
  begin
    Writeln(obj.Arrays['email'][i]);
  end;

  obj['lastname'] := 'shatner';
  writeln(obj.AsJSON);
  ReadLn;
end.
The core Chimera library is intended to be very lightweight, fast and simple.  No revisions that slow parsing or generation will be accepted unless it is required to fix conformance to json standard. 

The project is hosted on Bitbucket:

https://bitbucket.org/sivv/chimera