Property names are changed by UStructToJsonObjectString.
Hi, there: I'm trying Json-Request-Response in C++, and I use FJsonObjectConverter::UStructToJsonObjectString to convert a struct to a string, and found this api has an issue. this is my struct: this is my code: after conversion, the json string becomes: the member variable "UserAccount" becomes "userAccount", "GUID" becomes "gUId", and "Password" becomes "password".
Cause I convert this string to struct in server by Java, the Json library in Java can't identify the struct if the case of member variable's name doesn't match.
Any advice will be thankful.
asked May 11 '15 at 09:45 AM in Bug Reports
It appears that the function FJsonObjectConverter::StandardizeCase() is converting the first character from uppercase to lowercase. If you're using a source version of the engine, changing the FJsonObjectConverter::UStructToJsonAttributes() function from
answered May 21 '15 at 04:09 PM
I am not sure if I would agree with UE4 forcing conventions on coders, and I could be completely wrong.
You probably just need to adjust for the lowercase letters on the receiver.
answered May 14 '15 at 06:59 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here