How to insert JSONArray using storage Services?

0 votes
storageSerive.insertJSONDocument()  allows only one json to insert at a time.
asked Apr 8, 2015 in App42 Cloud API-BaaS by ankit.jain (10 points)

1 Answer

0 votes

Hello Ankit,

Inserting a JSON array in storage service is not supported yet. You can import your JSON file into Storage service to insert a large set of documents on a single call. Kindly visit this link for importing JSON file and let us know if it helps.

Thanks,

Himanshu Sharma

answered Apr 8, 2015 by hs00105 (2,005 points)
Hello Himanshu,

Thank you for your response. Please let me know if there is any way to import json file using any sdk method call. The link you have shared with me is to import file using GUI of APP42
There is no direct API to import JSON file into collection and can only be done from UI console. However you can write a read script in which you can read input JSON from the file first and insert it accordingly into the storage service. Have a look at the below link it will help you to read your json file data and insert it JSON object http://stackoverflow.com/questions/10926353/how-to-read-json-file-into-java-with-simple-json-library.

Thanks,
Himanshu Sharma
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
...