struct CCL::JsonUtils
Overview
JSON utilities. More…
#include <jsonarchive.h> struct JsonUtils { // classes class TransformStream; // methods static IStream* serialize ( const Attributes& a, int flags = JsonArchive::kSuppressWhitespace ); static String toString ( const Attributes& a, int flags = JsonArchive::kSuppressWhitespace ); static bool parse (Attributes& a, IStream& s); static bool parseString (Attributes& a, StringRef string); static bool convertFromBinaryFormat (IStream& dest, IStream& source); static bool convertToBinaryFormat (IStream& dest, IStream& source); static IStream* convertStream (IStream& source, bool toBinary); static ITransformStream* createTransformStream (bool toBinary); };
Detailed Documentation
JSON utilities.
Methods
static IStream* serialize ( const Attributes& a, int flags = JsonArchive::kSuppressWhitespace )
Serialize attributes to JSON memory stream.
static String toString ( const Attributes& a, int flags = JsonArchive::kSuppressWhitespace )
Serialize attributes to JSON string.
static bool parse (Attributes& a, IStream& s)
Parse attributes from JSON stream.
static bool parseString (Attributes& a, StringRef string)
Parse attributes from JSON string.
static bool convertFromBinaryFormat (IStream& dest, IStream& source)
Convert UBJSON format to JSON.
static bool convertToBinaryFormat (IStream& dest, IStream& source)
Convert JSON format to UBJSON.