//读取任意结构jSON数据
//需在C++中定义好相应数据结构
//蓝图定义数据结构后续考虑开发-----
/1、添加手工解析的标识符 CustomStructureParam
2、 阻止UBT不自动生成解析代码 CustomThunk/
/**
//JsonOperateLibrary.h
* ReadJson 读取Json字符串,将其转换为任意C++定义的与Json字符串相对应的结构
*
*
* @param JsonStr Json字符串
* @param AnyStruct Json字符串结构,该结构需用C++定义
*
*/
UFUNCTION(BlueprintCallable, Category = "Json", CustomThunk,meta = (CustomStructureParam = "AnyStruct"))
static void ReadJson(const FString& JsonStr, UStructProperty* AnyStruct);
DECLARE_FUNCTION(execReadJson) {
//获取函数输入参数
P_GET_PROPERTY(UStrProperty, JsonStr);
// Steps into the stack, walking to the next property in it
Stack.Step(Stack.Object, NULL);
// Grab the last property found when we walked the stack
// This does not contains the property value, only its type information
UStructProperty* StructProperty = ExactCast<UStructProperty>(Stack.MostRecentProperty);
//