Solved

exposing attribute in square brackets using JSON Fragmenter

  • 11 April 2019
  • 2 replies
  • 13 views

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
icon

Best answer by david_r 11 April 2019, 12:13

View original

2 replies

Userlevel 4

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.

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

Reply