5#include "Containers/Array.h"
6#include "Containers/Map.h"
28 template<EJson JsonType>
92 template<EJson JsonType>
197 template<
typename TEnum>
207 for (
const FString&
String : Strings)
311#if !PLATFORM_TCHAR_IS_UTF8CHAR
313 template <EJson JsonType>
314 UE_DEPRECATED(5.4,
"Passing an ANSI string to GetField has been deprecated outside of UTF-8 mode. Please use the overload that takes a TCHAR string.")
320 UE_DEPRECATED(5.4,
"Passing an ANSI string to TryGetField has been deprecated outside of UTF-8 mode. Please use the overload that takes a TCHAR string.")
326 UE_DEPRECATED(5.4,
"Passing an ANSI string to HasField has been deprecated outside of UTF-8 mode. Please use the overload that takes a TCHAR string.")
332 template <EJson JsonType>
333 UE_DEPRECATED(5.4,
"Passing an ANSI string to HasTypedField has been deprecated outside of UTF-8 mode. Please use the overload that takes a TCHAR string.")
339 UE_DEPRECATED(5.4,
"Passing an ANSI string to RemoveField has been deprecated outside of UTF-8 mode. Please use the overload that takes a TCHAR string.")
345 UE_DEPRECATED(5.4,
"Passing an ANSI string to GetNumberField has been deprecated outside of UTF-8 mode. Please use the overload that takes a TCHAR string.")
351 UE_DEPRECATED(5.4,
"Passing an ANSI string to GetIntegerField has been deprecated outside of UTF-8 mode. Please use the overload that takes a TCHAR string.")
357 UE_DEPRECATED(5.4,
"Passing an ANSI string to TryGetNumberField has been deprecated outside of UTF-8 mode. Please use the overload that takes a TCHAR string.")
363 UE_DEPRECATED(5.4,
"Passing an ANSI string to TryGetNumberField has been deprecated outside of UTF-8 mode. Please use the overload that takes a TCHAR string.")
369 UE_DEPRECATED(5.4,
"Passing an ANSI string to TryGetNumberField has been deprecated outside of UTF-8 mode. Please use the overload that takes a TCHAR string.")
375 UE_DEPRECATED(5.4,
"Passing an ANSI string to TryGetNumberField has been deprecated outside of UTF-8 mode. Please use the overload that takes a TCHAR string.")
381 UE_DEPRECATED(5.4,
"Passing an ANSI string to TryGetNumberField has been deprecated outside of UTF-8 mode. Please use the overload that takes a TCHAR string.")
387 UE_DEPRECATED(5.4,
"Passing an ANSI string to TryGetNumberField has been deprecated outside of UTF-8 mode. Please use the overload that takes a TCHAR string.")
393 UE_DEPRECATED(5.4,
"Passing an ANSI string to TryGetNumberField has been deprecated outside of UTF-8 mode. Please use the overload that takes a TCHAR string.")
399 UE_DEPRECATED(5.4,
"Passing an ANSI string to TryGetNumberField has been deprecated outside of UTF-8 mode. Please use the overload that takes a TCHAR string.")
405 UE_DEPRECATED(5.4,
"Passing an ANSI string to TryGetNumberField has been deprecated outside of UTF-8 mode. Please use the overload that takes a TCHAR string.")
411 UE_DEPRECATED(5.4,
"Passing an ANSI string to TryGetNumberField has been deprecated outside of UTF-8 mode. Please use the overload that takes a TCHAR string.")
417 UE_DEPRECATED(5.4,
"Passing an ANSI string to GetStringField has been deprecated outside of UTF-8 mode. Please use the overload that takes a TCHAR string.")
423 UE_DEPRECATED(5.4,
"Passing an ANSI string to TryGetStringField has been deprecated outside of UTF-8 mode. Please use the overload that takes a TCHAR string.")
429 UE_DEPRECATED(5.4,
"Passing an ANSI string to TryGetStringArrayField has been deprecated outside of UTF-8 mode. Please use the overload that takes a TCHAR string.")
435 template <
typename TEnum>
436 UE_DEPRECATED(5.4,
"Passing an ANSI string to TryGetEnumArrayField has been deprecated outside of UTF-8 mode. Please use the overload that takes a TCHAR string.")
442 UE_DEPRECATED(5.4,
"Passing an ANSI string to GetBoolField has been deprecated outside of UTF-8 mode. Please use the overload that takes a TCHAR string.")
448 UE_DEPRECATED(5.4,
"Passing an ANSI string to TryGetBoolField has been deprecated outside of UTF-8 mode. Please use the overload that takes a TCHAR string.")
454 UE_DEPRECATED(5.4,
"Passing an ANSI string to GetArrayField has been deprecated outside of UTF-8 mode. Please use the overload that takes a TCHAR string.")
460 UE_DEPRECATED(5.4,
"Passing an ANSI string to TryGetArrayField has been deprecated outside of UTF-8 mode. Please use the overload that takes a TCHAR string.")
466 UE_DEPRECATED(5.4,
"Passing an ANSI string to GetObjectField has been deprecated outside of UTF-8 mode. Please use the overload that takes a TCHAR string.")
472 UE_DEPRECATED(5.4,
"Passing an ANSI string to TryGetObjectField has been deprecated outside of UTF-8 mode. Please use the overload that takes a TCHAR string.")
OODEFFUNC typedef void(OODLE_CALLBACK t_fp_OodleCore_Plugin_Free)(void *ptr)
#define UE_DEPRECATED(Version, Message)
Definition CoreMiscDefines.h:302
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
EJson
Definition JsonTypes.h:23
#define UE_LOG(CategoryName, Verbosity, Format,...)
Definition LogMacros.h:270
const bool
Definition NetworkReplayStreaming.h:178
UE_INTRINSIC_CAST UE_REWRITE constexpr std::remove_reference_t< T > && MoveTemp(T &&Obj) noexcept
Definition UnrealTemplate.h:520
Definition JsonObject.h:23
void SetStringField(const FString &FieldName, const TCHAR *StringValue)
Definition JsonObject.h:231
JSON_API void SetBoolField(FString &&FieldName, bool InValue)
Definition JsonObject.cpp:193
bool HasField(FStringView FieldName) const
Definition JsonObject.h:74
bool HasTypedField(FStringView FieldName) const
Definition JsonObject.h:93
JSON_API void SetObjectField(FString &&FieldName, const TSharedPtr< FJsonObject > &JsonObject)
Definition JsonObject.cpp:245
JSON_API bool TryGetStringField(FStringView FieldName, FString &OutString) const
Definition JsonObject.cpp:105
void SetStringField(FString &&FieldName, const TCHAR *StringValue)
Definition JsonObject.h:227
SIZE_T GetMemoryFootprint() const
Definition JsonObject.h:302
void SetStringField(const FString &FieldName, const UTF8CHAR *StringValue)
Definition JsonObject.h:239
JSON_API void RemoveField(FStringView FieldName)
Definition JsonObject.cpp:15
void SetStringField(FString &&FieldName, const UTF8CHAR *StringValue)
Definition JsonObject.h:235
JSON_API bool TryGetArrayField(FStringView FieldName, const TArray< TSharedPtr< FJsonValue > > *&OutArray) const
Definition JsonObject.cpp:208
TSharedPtr< FJsonValue > GetField(FStringView FieldName, EJson JsonType) const
Definition JsonObject.h:34
JSON_API double GetNumberField(FStringView FieldName) const
Definition JsonObject.cpp:20
JSON_API const TArray< TSharedPtr< FJsonValue > > & GetArrayField(FStringView FieldName) const
Definition JsonObject.cpp:203
TMap< FString, TSharedPtr< FJsonValue > > Values
Definition JsonObject.h:26
JSON_API FUtf8String GetUtf8StringField(FStringView FieldName) const
Definition JsonObject.cpp:100
JSON_API const TSharedPtr< FJsonObject > & GetObjectField(FStringView FieldName) const
Definition JsonObject.cpp:234
JSON_API bool TryGetNumberField(FStringView FieldName, float &OutNumber) const
Definition JsonObject.cpp:25
bool TryGetEnumArrayField(FStringView FieldName, TArray< TEnum > &OutArray) const
Definition JsonObject.h:198
int32 GetIntegerField(FStringView FieldName) const
Definition JsonObject.h:145
void SetStringField(const FString &FieldName, const ANSICHAR *StringValue)
Definition JsonObject.h:223
JSON_API bool TryGetStringArrayField(FStringView FieldName, TArray< FString > &OutArray) const
Definition JsonObject.cpp:111
JSON_API void SetArrayField(FString &&FieldName, TArray< TSharedPtr< FJsonValue > > &&Array)
Definition JsonObject.cpp:214
JSON_API bool TryGetBoolField(FStringView FieldName, bool &OutBool) const
Definition JsonObject.cpp:187
JSON_API bool GetBoolField(FStringView FieldName) const
Definition JsonObject.cpp:182
TSharedPtr< FJsonValue > TryGetField(FStringView FieldName) const
Definition JsonObject.h:62
JSON_API void SetNumberField(FString &&FieldName, double Number)
Definition JsonObject.cpp:85
bool HasTypedField(FStringView FieldName, EJson JsonType) const
Definition JsonObject.h:105
TSharedPtr< FJsonValue > GetField(FStringView FieldName) const
Definition JsonObject.h:29
JSON_API bool TryGetObjectField(FStringView FieldName, const TSharedPtr< FJsonObject > *&OutObject) const
Definition JsonObject.cpp:239
JSON_API FString GetStringField(FStringView FieldName) const
Definition JsonObject.cpp:95
void SetStringField(FString &&FieldName, const ANSICHAR *StringValue)
Definition JsonObject.h:219
JSON_API void SetField(FString &&FieldName, const TSharedPtr< FJsonValue > &Value)
Definition JsonObject.cpp:5
Definition JsonValue.h:22
void Empty(SizeType Slack=0)
Definition Array.h:2273
Definition UnrealString.h.inl:34
Definition SharedPointer.h:692
constexpr int32 Len() const
Definition StringView.h:174
constexpr const CharType * GetData() const
Definition StringView.h:160
Definition FieldSystemNoiseAlgo.cpp:6