GoPxL SDK
Home
Files
Namespace
void Flatten
(
)
Flattens json.
Version
Introduced in 0.2.1.53
Remarks
Example Given JSON {"pi", 3.141}, {"happy", true}, {"name", "Niels"}, {"nothing", nullptr}, { "answer", { {"everything", 42} } }, {"list", {1, 0, 2}}, { "object", { {"currency", "USD"}, {"value", 42.99} } } Will become { "/answer/everything": 42, "/happy": true, "/list/0": 1, "/list/1": 0, "/list/2": 2, "/name": "Niels", "/nothing": null, "/object/currency": "USD", "/object/value": 42.99, "/pi": 3.141 }
GoPxLSdk
GoJson