SocketIOClient-Unreal icon indicating copy to clipboard operation
SocketIOClient-Unreal copied to clipboard

Json Object to Struct not work?

Open DantaliaN00 opened this issue 8 years ago • 2 comments

Question in title.

Steps:

  • Construct Json Object (new)
  • Decode Json from string or set string field
  • check fill by encode json - correct
  • Make empty Struct with correct fields
  • try Json Object to Struct (return true)
  • check by break struct or struct to json - values is empty

But Struct to Json works correctly

image

Any thoughts?

DantaliaN00 avatar Dec 18 '17 13:12 DantaliaN00

My bad. I make a new struct, but I'll need to create new Variable and change it

image

DantaliaN00 avatar Dec 18 '17 22:12 DantaliaN00

Your answer is correct. You need a variable (local or member) containing a compatible struct which the function fills by reference. In your first graph, the 'make' struct node should always contain the initialized struct with specified default values, if you want those struct values to change it will need to be set to a local or member variable.

getnamo avatar Dec 19 '17 10:12 getnamo