Files
PolyORB/examples/dsa/json/cli.adb
Thomas Quinot 8630a90f08 Add support for relocatable starter
Allow partition location to be specified as a relative directory
and resolved at run time relative to the location of the starter.
This allows the starter and partition binaries to be moved around.

RA26-001
2018-11-20 10:17:02 +01:00

17 lines
373 B
Ada

with Ada.Text_IO; use Ada.Text_IO;
with GNATCOLL.JSON; use GNATCOLL.JSON;
with Normal_JSON; use Normal_JSON;
with RCI;
procedure Cli is
J1 : JSON_Value := Create_Object;
J2 : JSON_Value;
begin
J1.Set_Field ("data", Create (Integer'(123)));
Put_Line ("J1 = " & Write (J1));
J2 := Unwrap (RCI.Frob (Wrap (J1)));
Put_Line ("J2 = " & Write (J2));
end Cli;