FJsonConfig

Unreal Engine C++ API Reference > Editor > EditorConfig

References

   
Module EditorConfig
Header /Engine/Source/Editor/EditorConfig/Public/JsonConfig.h
Include #include "JsonConfig.h"

Syntax

class FJsonConfig  

Constructors

Type Name Description
  FJsonConfig ()  

Functions

Type Name Description
const FJsonC... GetParentConfig ()  
TSharedPtr< ... GetRootObject ()  
bool HasOverride ( const FJsonPath& Path )  
bool IsValid ()  
bool LoadFromFile ( FStringView FilePath )  
bool LoadFromString ( FStringView Content )  
bool SaveToFile ( FStringView FilePath )  
bool SaveToString ( FString& OutResult )  
bool SetBool ( const FJsonPath& Path, bool Value )  
bool SetJsonArray ( const FJsonPath& Path, const TArray< TSharedPtr< FJsonValu... )  
bool SetJsonObject ( const FJsonPath& Path, const TSharedPtr< FJsonObject >& O... )  
bool SetJsonValue ( const FJsonPath& Path, const TSharedPtr< FJsonValue >& Va... )  
bool SetNumber ( const FJsonPath& Path, T Value ) Try to set a number - returns false if:
void SetParent ( const TSharedPtr< FJsonConfig >& P... )  
bool SetRootObject ( const TSharedPtr< FJsonObject >& O... )  
bool SetString ( const FJsonPath& Path, FStringView Value )  
bool SetString ( const FJsonPath& Path, const FText& Value )  
bool TryGetArray ( const FJsonPath& Path, TArray< double >& OutArray )  
bool TryGetArray ( const FJsonPath& Path, TArray< float >& OutArray )  
bool TryGetArray ( const FJsonPath& Path, TArray< uint64 >& OutArray )  
bool TryGetArray ( const FJsonPath& Path, TArray< uint32 >& OutArray )  
bool TryGetArray ( const FJsonPath& Path, TArray< uint16 >& OutArray )  
bool TryGetArray ( const FJsonPath& Path, TArray< uint8 >& OutArray )  
bool TryGetArray ( const FJsonPath& Path, TArray< int64 >& OutArray )  
bool TryGetArray ( const FJsonPath& Path, TArray< int32 >& OutArray )  
bool TryGetArray ( const FJsonPath& Path, TArray< FText >& OutArray )  
bool TryGetArray ( const FJsonPath& Path, TArray< int8 >& OutArray )  
bool TryGetArray ( const FJsonPath& Path, TArray< bool >& OutArray ) These are specializations for arithmetic and string arrays these could be templated with enable-ifs, but it ended up being more lines of incomprehensible template SFINAE than this clear list of types is
bool TryGetArray ( const FJsonPath& Path, TArray< TSharedPtr< FJsonValue >>&... )  
bool TryGetArray ( const FJsonPath& Path, TArray< FName >& OutArray )  
bool TryGetArray ( const FJsonPath& Path, TArray< FString >& OutArray )  
bool TryGetArray ( const FJsonPath& Path, TArray< int16 >& OutArray )  
bool TryGetBool ( const FJsonPath& Path, bool& OutValue )  
bool TryGetJsonObject ( const FJsonPath& Path, TSharedPtr< FJsonObject >& OutValu... )  
bool TryGetJsonValue ( const FJsonPath& Path, TSharedPtr< FJsonValue >& OutValue )  
bool TryGetMap ( const FJsonPath& Path, TArray< FJsonValuePair >& OutMap )  
bool TryGetNumber ( const FJsonPath& Path, T& OutValue )  
bool TryGetString ( const FJsonPath& Path, FString& OutValue )  
bool TryGetString ( const FJsonPath& Path, FName& OutValue )  
bool TryGetString ( const FJsonPath& Path, FText& OutValue )  

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library