I have what appears to be a fairly simple process: Make a request to a server, get some json back with text data in it. Decode and proceed to layout.
It should work except that when the json input is decoded by lua an empty table is returned.
Here’s the json file that is encoded on the server in PHP json_encode()
{“Time”:“19:55”,“Condition”:“Overcast”,“Wind”:“W 19/0 (22/0)”,“Temperature”:“20(69)”,“Humidity”:“71”,“Pressure”:“1013 /29.91”}
PHP’s json_encode has many options. does anybody know what the right one might be to get Corona to decode the file properly?
Has anybody else run in to this problem?
[import]uid: 11419 topic_id: 19715 reply_id: 319715[/import]