JSON-Loop | JSON Loop is a super easy | YAML Processing library
kandi X-RAY | JSON-Loop Summary
kandi X-RAY | JSON-Loop Summary
JSON Loop is a super easy to use tool class helping you loop the deeply nested JSON object.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of JSON-Loop
JSON-Loop Key Features
JSON-Loop Examples and Code Snippets
Community Discussions
Trending Discussions on JSON-Loop
QUESTION
I'm using the Newtonsoft JSON library. I want to loop through a JSON result set without having to create a separate class if possible, since the JSON object is far more extended that displayed here.
I already looked here and here.
My JSON (beautified at bottom of post):
...ANSWER
Answered 2017-Nov-24 at 21:08You can cast the result
JToken
to a JObject
and loop through its Properties()
collection. The Value
of each of those properties is another JObject
containing the data (e.g. id
, client_id
, photos
, etc.) you are interested in.
Here is an example:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install JSON-Loop
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page