Skip to main content
Solved

Parse JSON list problem

  • February 18, 2015
  • 1 reply
  • 9 views

Forum|alt.badge.img
Hi,

 

 

I cant achieve to to parse correctly json elements and attributes correctly. The json received is like this:

 

  
 {   "elements": [ {   "type": "way",   "id": 98815885,   "nodes": [     3325506694,     3325506698,     3325506701,     3325506705,   ], }, {   "type": "way",   "id": 98815895,   "nodes": [     1142949510,     1142941660,     1142983536,   ] } ] }
 

 

I am using the JSONFlattener, then the AttributesExposer (with elements{}, elements{},nodes{}, elements{}.id and elements{}.type) and finally the listExploder on elements{}.

 

 

The number of parsed feature is correct but there is no data inside the nodes attributes of each features. It's like if elements{}.nodes was empty for each feature.

Best answer by jdh

I would use a JSONFragmenter

 

 

incidentally your posted json has trailing commas after the last value in an object or array
View original
Did this help you find an answer to your question?
This post is closed to further activity.
It may be a question with a best answer, an implemented idea, or just a post needing no comment.
If you have a follow-up or related question, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

jdh
Contributor
Forum|alt.badge.img+28
  • Contributor
  • Best Answer
  • February 18, 2015
I would use a JSONFragmenter

 

 

incidentally your posted json has trailing commas after the last value in an object or array

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings