question

samerabduljaber avatar image
samerabduljaber asked

Title Data - Json value Properties and properties value?

i have a title data named WorkersCodesRef with this json value { "sa-ba": [ "CAA315AFBCD869D5", "jhon", "0781589323", "[BeardTrim, HairTrim, Beard and Hair]" ], "ra-bb": [ "5E69A305423CDA2B", "sam", "0781589323", "[BeardTrim, HairTrim, Beard and Hair]" ], "sa-bc": [ "DC976FE0F4C611A0", "moe", "0781589323", "[BeardTrim, HairTrim, Beard and Hair]" ], inside inreal engine sdk how can get the value of the property for example sa-bc and then get its array value [ "5E69A305423CDA2B", "sam", "0781589323", "[BeardTrim, HairTrim, Beard and Hair] note: am already using the get title data node and i can get the value of the title data as string

Title Data
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

·
Xiao Zha avatar image
Xiao Zha answered

The value of your title data “WorkersCodesRef” is a Json string, you may need to decode it to a JSON object using the “Decode JSON” node, and this object should be assigned to a pre-defined JSON object variable. Then you may use the “Get String Array Filed” node to get the “sa-bc” string array. Here is the Blueprint example you may refer to.

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.