Open 3D Engine AWSCore Gem API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AWSCore::JsonWriter Class Reference

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)
 

Detailed Description

Used to produce request json format content.

Member Function Documentation

◆ Object()

template<class ObjectType >
bool AWSCore::JsonWriter::Object ( const ObjectType &  obj)
inline

Write an object. The object can implement a WriteJson function or you can provide an GlobalWriteJson template function specialization.

◆ WriteJson()

bool AWSCore::JsonWriter::WriteJson ( const Ch *  json)
inline

Write JSON format content directly to the writer's output stream. This can be used to efficiently output static content.


The documentation for this class was generated from the following file: