Welcome! Log In Create A New Profile

Advanced

[WM] - JSON is not getting converted to Variant in apk

Posted by YogiYang 
[WM] - JSON is not getting converted to Variant in apk
April 11, 2019 01:16PM
Hello,

This is a very unusual problem.

I am using a rest service that returns all the data in JSON format.

I am using following code to convert JSON to Variant.

HTTPresponse is httpResponse = HTTPSend(req)
JZ = JSONToVariant(HTTPresponse..Content)

This service should return 4 items and surprisingly it is working just great when we test the app in WM IDE.

On android device I am getting this. Please check attached images.

TIA

--
Yogi Yang
Attachments:
open | download - photo_2019-04-11_16-37-13.jpg (16.3 KB)
open | download - photo_2019-04-11_16-37-54.jpg (33.8 KB)
Re: [WM] - JSON is not getting converted to Variant in apk
April 11, 2019 02:37PM
Try Deserialize() instead of JSONtoVariant()
These appear to do the same operation but I have found sometime one is better than the other.
Re: [WM] - JSON is not getting converted to Variant in apk
April 12, 2019 04:01PM
Thank for the tip. I will try that out.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: