Used to produce request json format content. More...
#include <JsonWriter.h>
Inherits rapidjson::Writer< JsonOutputStream >.
Public Member Functions | |
JsonWriter (JsonOutputStream &os) | |
bool | Write (const char *s) |
bool | Write (const AZStd::string &s) |
bool | Write (int i) |
bool | Write (unsigned i) |
bool | Write (int64_t i) |
bool | Write (uint64_t i) |
bool | Write (bool b) |
template<typename ElementType > | |
bool | Write (const AZStd::vector< ElementType, AZStd::allocator > &v) |
template<class ObjectType > | |
bool | Write (const ObjectType &o) |
template<class ValueType > | |
bool | Write (const char *key, const ValueType &value) |
bool | WriteJson (const Ch *json) |
bool | String (const AZStd::string &str) |
Overload of String that calls c_str for you. | |
template<class ObjectType > | |
bool | Object (const ObjectType &obj) |
template<class ElementType > | |
bool | Array (const AZStd::vector< ElementType, AZStd::allocator > &v) |
Static Public Member Functions | |
template<typename ObjectType > | |
static bool | WriteObject (JsonOutputStream &os, const ObjectType &object) |
Used to produce request json format content.
|
inline |
Write an object. The object can implement a WriteJson function or you can provide an GlobalWriteJson template function specialization.
|
inline |
Write JSON format content directly to the writer's output stream. This can be used to efficiently output static content.