Base class for a JSON serializable object
更多...
#include <JsonSerializerMacros.h>
|
| virtual bool | FromJson (const FString &Json) |
| | Serializes the contents of a JSON string into this object 更多...
|
| |
| virtual bool | FromJson (FString &&Json) |
| | Serializes the contents of a JSON string into this object 更多...
|
| |
| virtual void | Serialize (FJsonSerializerBase &Serializer, bool bFlatObject)=0 |
| | Abstract method that needs to be supplied using the macros 更多...
|
| |
| virtual const FString | ToJson (bool bPrettyPrint=true) |
| | Serializes this object to its JSON string form 更多...
|
| |
| const FString | ToJson (bool bPrettyPrint=true) const |
| | Used to allow serialization of a const ref 更多...
|
| |
|
virtual | ~FJsonSerializable () |
| | Virtualize destructor as we provide overridable functions
|
| |
Base class for a JSON serializable object
◆ FromJson() [1/2]
| virtual bool FJsonSerializable::FromJson |
( |
const FString & |
Json | ) |
|
|
inlinevirtual |
Serializes the contents of a JSON string into this object
- 参数
-
| Json | the JSON data to serialize from |
◆ FromJson() [2/2]
| virtual bool FJsonSerializable::FromJson |
( |
FString && |
Json | ) |
|
|
inlinevirtual |
Serializes the contents of a JSON string into this object
- 参数
-
| Json | the JSON data to serialize from |
◆ Serialize()
| virtual void FJsonSerializable::Serialize |
( |
FJsonSerializerBase & |
Serializer, |
|
|
bool |
bFlatObject |
|
) |
| |
|
pure virtual |
Abstract method that needs to be supplied using the macros
- 参数
-
| Serializer | the object that will perform serialization in/out of JSON |
| bFlatObject | if true then no object wrapper is used |
在 FJsonDataBag 内被实现.
◆ ToJson() [1/2]
| virtual const FString FJsonSerializable::ToJson |
( |
bool |
bPrettyPrint = true | ) |
|
|
inlinevirtual |
Serializes this object to its JSON string form
- 参数
-
| bPrettyPrint | - If true, will use the pretty json formatter |
- 返回
- the corresponding json string
◆ ToJson() [2/2]
| const FString FJsonSerializable::ToJson |
( |
bool |
bPrettyPrint = true | ) |
const |
|
inline |
Used to allow serialization of a const ref
- 返回
- the corresponding json string
该结构体的文档由以下文件生成: