How to get JSON Document from cloud?

0 votes
Hi,

I am storing json doc on cloud in corona. But the problem is to get the perticular value of json table from cloud.

so please help me how to fetch the data of json table.

 

Thanks
asked Mar 26, 2014 in Discuss & suggest API by imtiyaz (45 points)

1 Answer

0 votes

Hi  imtiyaz ,

There are different method to get(fetch) the json document  you can follow the link below it will be helpful for you.

http://api.shephertz.com/app42-docs/nosql-storage-service/

 

Thank you.

answered Mar 27, 2014 by anonymous
Yes i am using that functions for inserting json doc over the cloud and it storing but the problem is how can i get the json table that i stored at cloud.
I used storageService:findDocumentByKeyValue() function that giving me back the
1. object:getJsonDocList()[i]:getDocId()   --docid
2. object:getJsonDocList()[i]:getCreatedAt() -- createdAt

but how can i get that json table that i stored.
Please give me quick reply.
Require the JSON file by using the code snipped below :-
local JSON = require("App42-Lua-API.JSON")

// This will return you the json doc
for m=1,table.getn(object:getJsonDocList()) do
    print("Doclist Name is "..JSON:encode(object:getJsonDocList()[m]:getJsonDoc()));
 end
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...