How to get JObject array back from HTTPResponseObject?

0 votes
Is it possible to get an array of JObject's back from a custom code service?
asked Oct 3, 2014 in App42 Cloud API-BaaS by tartunian (10 points)

1 Answer

0 votes

Custom Code service returns JSON Object in all respective SDKs as a root level object. You can append JSON array inside it and parse it on client side. However Custom code directly does not return JSON array. You can create a JSON string like this which will have JSON object on a root level however employeesArray mode will contain array inside.

    {"firstName":"John", "lastName":"Doe"}, 
    {"firstName":"Anna", "lastName":"Smith"}, 
    {"firstName":"Peter", "lastName":"Jones"}
] }


Let me know if it helps.



answered Oct 3, 2014 by ajay123 (899 points)
Thanks that helped!
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