Navigation
API > API/Runtime > API/Runtime/Json
Useful if you just want access to the underlying FJsonObject (for cases where the schema is loose or an outer system will do further de/serialization)
| Name | FJsonDataBag |
| Type | struct |
| Header File | /Engine/Source/Runtime/Json/Public/Serialization/JsonDataBag.h |
| Include Path | #include "Serialization/JsonDataBag.h" |
Syntax
struct FJsonDataBag : public FJsonSerializable
Inheritance Hierarchy
- FJsonSerializable → FJsonDataBag
Derived Classes
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| JsonObject | TSharedPtr< FJsonObject > | Serialization/JsonDataBag.h | ||
| NumPrintIndents | TOptional< int32 > | If set, will use TPrettyJsonPrintPolicy | Serialization/JsonDataBag.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool GetBool
(
const FString& Key |
Serialization/JsonDataBag.h | ||
double GetDouble
(
const FString& Key |
Serialization/JsonDataBag.h | ||
TSharedPtr< const FJsonValue > GetField
(
const FString& Key |
Serialization/JsonDataBag.h | ||
| Serialization/JsonDataBag.h | |||
void SetField
(
const FString& Key, |
Serialization/JsonDataBag.h | ||
void SetFieldJson
(
const FString& Key, |
Serialization/JsonDataBag.h |
Overridden from FJsonSerializable
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void Serialize
(
FJsonSerializerBase& Serializer, |
Abstract method that needs to be supplied using the macros | Serialization/JsonDataBag.h |