Content


NTL
Core
json_encode

json_encode



Convert Variant or Variable into json encoded string. Using Variable is preferable.

If progress listener is passed as argument progress_listener value, its method NotifyOnProgress() will be called each time some progress is made. You can use its abort argument to abort decoding if needed. Please note that for function working with Variant progress structure member Total is always zero.

String json_encode(const Variant &source, const bool compact = false, script::IProgressListener *progress_listener = nullptr);
String json_encode(const script::Variable &source, const bool compact = false, script::IProgressListener *progress_listener = nullptr);
Namespace: nitisa
Include: Nitisa/Core/Json.h