question

entelicon avatar image
entelicon asked

Parsing Json value from CloudCode

Cloud Code returns:

{"messageValue":"Bow"}

On Unity, I need to decode this and just get the Bow part of the message into a string variable.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
brendan avatar image
brendan answered

That should just be response.FunctionResult.messageValue - can you try that? I'd also recommend logging the complete output via result.FunctionResult.ToString(), so that you can see the complete object returned from your script.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.