How to obtain a ustruct from a json with an array

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

Solved it!

Ustructs utilized:

USTRUCT()
struct FErrorsDetail {
	GENERATED_BODY()
		UPROPERTY() FString details;
	FErrorsDetail () {}
};

USTRUCT()
struct FResponse_Error {
	GENERATED_BODY()
		UPROPERTY() TArray<Ferrors> errors;
	FResponse_Error() {}
};

Code:

FResponse_Error errorResponse;
		FJsonObjectConverter::JsonObjectStringToUStruct<FResponse_Error >(Response->GetContentAsString(), &errorResponse, 0, 0);

Hey I am sorry, I must be stupid or something but I don’t see your FErrors struct (I assuming, at least as far as C++ knowledge allows me to, that it can’t be FErrorsDetail, right?)