Navigation
Unreal Engine C++ API Reference > Runtime > JsonUtilities
References
Module | JsonUtilities |
Header | /Engine/Source/Runtime/JsonUtilities/Public/JsonObjectConverter.h |
Include | #include "JsonObjectConverter.h" |
Syntax
class FJsonObjectConverter
Remarks
Class that handles converting Json objects to and from UStructs
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
bool | GetTextFromField
(
const FString& FieldName, |
Convert a Json value to text (takes some hints from the value name) |
![]() ![]() |
bool | GetTextFromObject
(
const TSharedRef< FJsonObject >& Obj, |
Parse an FText from a json object (assumed to be of the form where keys are culture codes and values are strings) |
![]() ![]() |
bool | JsonArrayStringToUStruct
(
const FString& JsonString, |
Converts from a json string containing an array to an array of UStructs |
![]() ![]() |
bool | JsonArrayToUStruct
(
const TArray< TSharedPtr< FJsonValue > >& JsonArray, |
Converts from an array of json values to an array of UStructs. |
![]() ![]() |
bool | JsonAttributesToUStruct
(
const TMap< FString, TSharedPtr< FJsonValue > >& JsonAttributes, |
Converts a set of json attributes (possibly from within a JsonObject) to a UStruct, using importText |
![]() ![]() |
bool | JsonObjectStringToUStruct
(
const FString& JsonString, |
Converts from a json string containing an object to a UStruct |
![]() ![]() |
bool | JsonObjectToUStruct
(
const TSharedRef< FJsonObject >& JsonObject, |
Converts from a Json Object to a UStruct, using importText |
![]() ![]() |
bool | JsonObjectToUStruct
(
const TSharedRef< FJsonObject >& JsonObject, |
Templated version of JsonObjectToUStruct |
![]() ![]() |
bool | JsonValueToUProperty
(
const TSharedPtr< FJsonValue >& JsonValue, |
Converts a single JsonValue to the corresponding FProperty (this may recurse if the property is a UStruct for instance). |
![]() ![]() |
TSharedPtr< FJsonValue > |
ObjectJsonCallback
(
FProperty* Property, |
Utility Export Callback for having object properties expanded to full Json. |
![]() ![]() |
FFormatNamedArguments | ParseTextArgumentsFromJson
(
const TSharedPtr< const FJsonObject >& JsonObject |
Parses text arguments from Json into a map |
![]() ![]() |
FString | StandardizeCase
(
const FString& StringIn |
FName case insensitivity can make the casing of UPROPERTIES unpredictable. |
![]() ![]() |
TSharedPtr< FJsonValue > | UPropertyToJsonValue
(
FProperty* Property, |
* Converts from a FProperty to a Json Value using exportText |
![]() ![]() |
bool | UStructToFormattedJsonObjectString
(
const UStruct* StructDefinition, |
Wrapper to UStructToJsonObjectString that allows a print policy to be specified. |
![]() ![]() |
bool | UStructToJsonAttributes
(
const UStruct* StructDefinition, |
Converts from a UStruct to a set of json attributes (possibly from within a JsonObject) |
![]() ![]() |
TSharedPtr< FJsonObject > | UStructToJsonObject
(
const InStructType& InStruct, |
Templated version of UStructToJsonObject to try and make most of the params. |
![]() ![]() |
bool | UStructToJsonObject
(
const UStruct* StructDefinition, |
Converts from a UStruct to a Json Object, using exportText |
![]() ![]() |
bool | UStructToJsonObjectString
(
const InStructType& InStruct, |
Templated version; Converts from a UStruct to a json string containing an object, using exportText |
![]() ![]() |
bool | UStructToJsonObjectString
(
const UStruct* StructDefinition, |
Converts from a UStruct to a json string containing an object, using exportText |
Typedefs
Name | Description |
---|---|
CustomExportCallback | Optional callback that will be run when exporting a single property to Json. |
Constants
Name | Description |
---|---|
ExportCallback_WriteISO8601Dates |