Hello everyone,
I’m currently trying to get this json:
{
"errors": [
{
"details": "Wrong username"
},
{
"details": "Wrong email"
}
]
}
to work with this UStruct:
USTRUCT()
struct FResponse_Error {
GENERATED_BODY()
UPROPERTY() FString details;
FResponse_Error() {}
};
through c++ methods
FJsonObjectConverter::JsonArrayStringToUStruct<FResponse_Error>(Response->GetContentAsString(), &errorResponse, 0, 0);
but with no succes, I looked for tutorials about ue4 and json but there isn’t much information about it, i had succes getting json like this one
{
"username": "qwerty",
"password": "qwerty"
}
to work with one of my structs but I struggle to work with any json which has an array of json or nested json
Any anwser is welcome!
Thanks in advance