I'm using "Rho::AsyncHttp.get" to get json data in call back method. Our server returns json data for so many platforms so it's working for all platform except RhoMobile platform.
The issue is with boolean values like true or false , because these values are not receiving as "true", "false".
The call back code is like below:
if @params['status'] == 'ok'
response = @params['body']
description = response['Description']
isCrewChief = response['IsCrewChief']
I looked at "variable" tab of debugger and noticed the value of isCrewChief (after expanding response object) is true"IsMale" which means parser ruins next key value pair as well (IsMale).
And here is the json data:
Any help is appreciated.
The issue resolved!
My debugger was crashing a few times and giving me wrong values. I ran it on another machine and got the correct result.