UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
JSON.h File Reference
#include "uLang/Common/Containers/Array.h"
#include "uLang/Common/Text/UTF8String.h"
#include "uLang/Common/Misc/Optional.h"
#include "rapidjson/document.h"
#include "rapidjson/prettywriter.h"

Go to the source code of this file.

Classes

class  uLang::JSONAllocator
 

Namespaces

namespace  uLang
 

Typedefs

using uLang::JSONMemoryPoolAllocator = rapidjson::MemoryPoolAllocator< JSONAllocator >
 
using uLang::JSONDocument = rapidjson::GenericDocument< rapidjson::UTF8< char >, JSONMemoryPoolAllocator, JSONAllocator >
 
using uLang::JSONGenericMemberIterator = rapidjson::GenericMemberIterator< false, rapidjson::UTF8< char >, JSONMemoryPoolAllocator >
 
using uLang::JSONValue = JSONDocument::ValueType
 
using uLang::JSONStringBuffer = rapidjson::StringBuffer
 
using uLang::JSONStringWriter = rapidjson::PrettyWriter< JSONStringBuffer >
 
using uLang::JSONStringRef = rapidjson::GenericStringRef< char >
 

Functions

CUTF8String uLang::EscapeJSON (const CUTF8StringView &RawText)
 
CUTF8String uLang::EscapeJSON (const UTF8Char Ch)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
bool uLang::FromJSON (const JSONValue &JSON, bool *Value)
 
bool uLang::FromJSON (const JSONValue &JSON, int *Value)
 
bool uLang::FromJSON (const JSONValue &JSON, uint32_t *Value)
 
bool uLang::FromJSON (const JSONValue &JSON, uint64_t *Value)
 
bool uLang::FromJSON (const JSONValue &JSON, CUTF8String *Value)
 
bool uLang::FromJSON (const JSONValue &JSON, CUTF8StringView *Value)
 
template<class T >
bool uLang::FromJSON (const JSONValue &JSON, TOptional< T > *OptionalValue)
 
template<class T >
bool uLang::FromJSON (const JSONValue &JSON, TArray< T > *ArrayValue)
 
template<class T >
bool uLang::FromJSON (const JSONValue &JSON, const char *MemberName, T *MemberValue, TOptional< bool > bRequired=EResult::Unspecified)
 
bool uLang::ToJSON (bool Value, JSONValue *JSON, JSONMemoryPoolAllocator &)
 
bool uLang::ToJSON (int Value, JSONValue *JSON, JSONMemoryPoolAllocator &)
 
bool uLang::ToJSON (uint32_t Value, JSONValue *JSON, JSONMemoryPoolAllocator &)
 
bool uLang::ToJSON (CUTF8StringView Value, JSONValue *JSON, JSONMemoryPoolAllocator &Allocator)
 
template<class T >
bool uLang::ToJSON (const TOptional< T > &OptionalValue, JSONValue *JSON, JSONMemoryPoolAllocator &Allocator)
 
template<class T >
bool uLang::ToJSON (const TArray< T > &ArrayValue, JSONValue *JSON, JSONMemoryPoolAllocator &Allocator)
 
template<class T >
bool uLang::ToJSON (const T &MemberValue, const char *MemberName, JSONValue *JSON, JSONMemoryPoolAllocator &Allocator)
 
template<class T >
bool uLang::ToJSON (const TOptional< T > &MemberValue, const char *MemberName, JSONValue *JSON, JSONMemoryPoolAllocator &Allocator)