Andrew,
Where and how exactly are you trying to use the "aivalues" object? I just now tried to create a simple workflow, created a user-defined Start Schema that matches your object, and used it in a Log Message task to assign to a string. It works fine. Just two points:
(1) aivalues["result"][0]["u_active_2"].toString() - This will make it a string, like "true" or "false".
(2) aivalues["result"][0]["u_active_2"] - Assigned straight to a boolean variable and it works just like that without any transformations.
I have the workflow available for you if you like (attached). Please note - this is just a simple workflow that does nothing but demonstrate these two assignments.
If you can describe more on how exactly you are receiving the data and how you are trying to use it, then we debug it more with a more clear demonstration workflow. Maybe, your JSON data has "true" or "false" enclosed in quotes, so it is actually a string, but you are trying to force that into a boolean variable? Just thinking...
Please let us know more after looking at the attached workflow. Thanks!
Filename |
BooleanAssignSample.xml |
Download
|
|