FJsonConfig

Choose your operating system:

Windows

macOS

Linux

References

Module

EditorConfig

Header

/Engine/Source/Editor/EditorConfig/Public/JsonConfig.h

Include

#include "JsonConfig.h"

Syntax

class FJsonConfig

Constructors

Name Description

Public function

FJsonConfig()

Functions

Name Description

Public function Const

const FJsonC...

 

GetParentConfig()

Public function Const

TSharedPtr< ...

 

GetRootObject()

Public function Const

bool

 

HasOverride

(
    const FJsonPath& Path
)

Public function Const

bool

 

IsValid()

Public function

bool

 

LoadFromFile

(
    FStringView FilePath
)

Public function

bool

 

LoadFromString

(
    FStringView Content
)

Public function Const

bool

 

SaveToFile

(
    FStringView FilePath
)

Public function Const

bool

 

SaveToString

(
    FString& OutResult
)

Public function

bool

 

SetBool

(
    const FJsonPath& Path,
    bool Value
)

Public function

bool

 

SetJsonArray

(
    const FJsonPath& Path,
    const TArray< TSharedPtr< FJsonValu...
)

Public function

bool

 

SetJsonObject

(
    const FJsonPath& Path,
    TSharedPtr< FJsonObject > Object
)

Public function

bool

 

SetJsonValue

(
    const FJsonPath& Path,
    TSharedPtr< FJsonValue > Value
)

Public function

bool

 

SetNumber

(
    const FJsonPath& Path,
    T Value
)

Try to set a number - returns false if:

Public function

void

 

SetParent

(
    TSharedPtr< FJsonConfig > Parent
)

Public function

bool

 

SetRootObject

(
    TSharedPtr< FJsonObject > Object
)

Public function

bool

 

SetString

(
    const FJsonPath& Path,
    FStringView Value
)

Public function

bool

 

SetString

(
    const FJsonPath& Path,
    const FText& Value
)

Public function Const

bool

 

TryGetArray

(
    const FJsonPath& Path,
    TArray< double >& OutArray
)

Public function Const

bool

 

TryGetArray

(
    const FJsonPath& Path,
    TArray< float >& OutArray
)

Public function Const

bool

 

TryGetArray

(
    const FJsonPath& Path,
    TArray< uint64 >& OutArray
)

Public function Const

bool

 

TryGetArray

(
    const FJsonPath& Path,
    TArray< uint32 >& OutArray
)

Public function Const

bool

 

TryGetArray

(
    const FJsonPath& Path,
    TArray< uint16 >& OutArray
)

Public function Const

bool

 

TryGetArray

(
    const FJsonPath& Path,
    TArray< uint8 >& OutArray
)

Public function Const

bool

 

TryGetArray

(
    const FJsonPath& Path,
    TArray< int64 >& OutArray
)

Public function Const

bool

 

TryGetArray

(
    const FJsonPath& Path,
    TArray< int32 >& OutArray
)

Public function Const

bool

 

TryGetArray

(
    const FJsonPath& Path,
    TArray< FText >& OutArray
)

Public function Const

bool

 

TryGetArray

(
    const FJsonPath& Path,
    TArray< int8 >& OutArray
)

Public function Const

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

Public function Const

bool

 

TryGetArray

(
    const FJsonPath& Path,
    TArray< TSharedPtr< FJsonValue >>&...
)

Public function Const

bool

 

TryGetArray

(
    const FJsonPath& Path,
    TArray< FName >& OutArray
)

Public function Const

bool

 

TryGetArray

(
    const FJsonPath& Path,
    TArray< FString >& OutArray
)

Public function Const

bool

 

TryGetArray

(
    const FJsonPath& Path,
    TArray< int16 >& OutArray
)

Public function Const

bool

 

TryGetBool

(
    const FJsonPath& Path,
    bool& OutValue
)

Public function Const

bool

 

TryGetJsonObject

(
    const FJsonPath& Path,
    TSharedPtr< FJsonObject >& OutValu...
)

Public function Const

bool

 

TryGetJsonValue

(
    const FJsonPath& Path,
    TSharedPtr< FJsonValue >& OutValue
)

Public function Const

bool

 

TryGetMap

(
    const FJsonPath& Path,
    TArray< FJsonValuePair >& OutMap
)

Public function Const

bool

 

TryGetNumber

(
    const FJsonPath& Path,
    T& OutValue
)

Public function Const

bool

 

TryGetString

(
    const FJsonPath& Path,
    FString& OutValue
)

Public function Const

bool

 

TryGetString

(
    const FJsonPath& Path,
    FName& OutValue
)

Public function Const

bool

 

TryGetString

(
    const FJsonPath& Path,
    FText& OutValue
)