Skip to main content
Solved

exposing attribute in square brackets using JSON Fragmenter


Hi,

 

I'm trying to expose attributes from a JSON file using JSONFragmenter and it's working perfectly fine for all attributes except one which is stored in [] brackets.

 

This is an example of how the JSON is structured:

 

 

[{"id":"5cad42","nummer:"697582","name":"place name","position":[51.51146259999999,11.5696619],"status":false}]

 

 

And once I have exposed the attributes I see all values except "position" value is missing, so I assume it has something to do with the [] brackets.

 

 

These are the JSONFragmenter Parameters:

 

 

Should something be changed here?

 

I know it must be easy :)

 

Thank you!

 

Cheers,Linda

Best answer by david_r

The square brackets in JSON implies an array of values. In FME, these will exit as a list.

In this case the list will be called position{}, and you'll have to expose it manually in the JsonFragmenter.

View original
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, 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.

2 replies

david_r
Celebrity
  • Best Answer
  • April 11, 2019

The square brackets in JSON implies an array of values. In FME, these will exit as a list.

In this case the list will be called position{}, and you'll have to expose it manually in the JsonFragmenter.


  • Author
  • April 11, 2019

The square brackets in JSON implies an array of values. In FME, these will exit as a list.

In this case the list will be called position{}, and you'll have to expose it manually in the JsonFragmenter.

Thanks for the quick answer! Got it :)