![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <JsonPointer.h>
Public Member Functions | |
| FJsonPointer ()=default | |
| JSON_API | FJsonPointer (FStringView Path) |
| JSON_API | FJsonPointer (const FJsonPointer &Other) |
| JSON_API | FJsonPointer (FJsonPointer &&Other) noexcept |
| JSON_API bool | TryGet (const TSharedPtr< FJsonObject > &RootObject, TSharedPtr< FJsonValue > &OutValue) const |
| JSON_API bool | TryGet (const TSharedPtr< FJsonValue > &RootValue, TSharedPtr< FJsonValue > &OutValue) const |
| JSON_API bool | TryGet (const TArray< TSharedPtr< FJsonValue > > &RootValues, TSharedPtr< FJsonValue > &OutValue) const |
| bool | IsValid () const |
| int32 | Length () const |
| JSON_API void | Append (FStringView Part) |
| JSON_API void | SetArrayIndex (int32 Index) |
| JSON_API FJsonPointer | GetSubPath (int32 NumParts) const |
| JSON_API FString | ToString () const |
| const FString & | operator[] (int32 Idx) const |
| const TArray< FString > & | GetAll () const |
Static Public Member Functions | |
| static JSON_API FString | EscapePart (const FString &Part) |
| static JSON_API FString | UnescapePart (const FString &Part) |
JSON Pointer defines a string syntax for identifying a specific value within a JavaScript Object Notation (JSON) document (from rfc6901).
|
default |
| UE::Json::FJsonPointer::FJsonPointer | ( | FStringView | Path | ) |
| UE::Json::FJsonPointer::FJsonPointer | ( | const FJsonPointer & | Other | ) |
|
noexcept |
| void UE::Json::FJsonPointer::Append | ( | FStringView | Part | ) |
Appends the given part to the path
|
static |
Substitutes characters in the provided Part with their escaped counterparts (as per the spec).
|
inline |
Get the path parts as an array.
| FJsonPointer UE::Json::FJsonPointer::GetSubPath | ( | int32 | NumParts | ) | const |
Gets the sub-path up to the given part length.
|
inline |
Checks that the path has one or more parts.
|
inline |
The number of parts in the path.
|
inline |
Get the path part at the given index.
Sets the last path part to the given array index.
| FString UE::Json::FJsonPointer::ToString | ( | ) | const |
Get the JsonPointer's string representation.
| bool UE::Json::FJsonPointer::TryGet | ( | const TArray< TSharedPtr< FJsonValue > > & | RootValues, |
| TSharedPtr< FJsonValue > & | OutValue | ||
| ) | const |
| bool UE::Json::FJsonPointer::TryGet | ( | const TSharedPtr< FJsonObject > & | RootObject, |
| TSharedPtr< FJsonValue > & | OutValue | ||
| ) | const |
| bool UE::Json::FJsonPointer::TryGet | ( | const TSharedPtr< FJsonValue > & | RootValue, |
| TSharedPtr< FJsonValue > & | OutValue | ||
| ) | const |
|
static |
Substitutes escaped characters in the Provided path with their original character (as per the spec).