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
Did this help you find an answer to your question?

2 replies

david_r
Evangelist
  • 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
david_r wrote:

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 :)


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