JSON Codec

Summary

Global Namespaces

Reference

std::string qi::encodeJSON(const qi::AutoAnyReference& val, JsonOption jsonPrintOption = JsonOption_None)

Brief:

Parameters:
  • val – Value to encode
  • jsonPrintOption – Option to change JSON output
Returns:

the value encoded in JSON.

Serializes a value of any compatible type to an JSON string. Objects, raw data and maps with non-string keys are incompatible.

qi::decodeJSON