JSON Serialization and Deserialization (native MQL) – library MetaTrader 5

JSON Serialization and Deserialization (native MQL) - library for MetaTrader 5
Serialization and deserialization of JSON protocol. The code is ported from a high-speed С++ library. string in, out; CJAVal js(NULL, jtUNDEF); bool b; //— Print(“JASon Example Deserialization:”); in=”{\”a\”:[1,2]}”; out=””; // example of input data b=js.Deserialize(in); // deserialized js.Serialize(out); // serialized again Print(in+” -> “+out); // output for comparison //— Print(“JASon Example Serialization:”); js[“Test”]=1.4; // input … Read more