Skip to main content
Question

create table from attribute .json

  • March 8, 2018
  • 5 replies
  • 31 views

Forum|alt.badge.img

Hello,

I have created an API call with a .json file, however, I am struggling to process these attributes (after having used JSON Flattener), I think it should be easy but I cannot get it.

Attached the image, I would like to have the list of attribute that appears on the right side as a proper table in which each row means a different element.

Could anyone please help with this?

Thank you very much

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.

5 replies

takashi
Celebrity
  • 7843 replies
  • March 8, 2018

Hi @claraosuna, a possible way is to expose the list members ("array{}.date", "array{}.id", "array{}.incr", .. etc.) with the AttributeExposer, and then use the ListExploder to transform the feature into record features for each element in the list.


david_r
Celebrity
  • 8394 replies
  • March 8, 2018

In the JSONFlattener, make sure you manually expose the array{} list attribute, then use the ListExploder to create one feature per list element.

If necessary, you can also add an AttributeExposer for the list element attributes.


Forum|alt.badge.img
  • Author
  • 6 replies
  • March 8, 2018

Hello @takashi and @david_r,

thank you very much for your response, I truly appreciate them.

I am trying to follow the workflow but I must be doing something wrong since I don't get anything successful, I attach the file

It is the first time that I use both tools so I am not quite sure how they work.

Thank you very much


david_r
Celebrity
  • 8394 replies
  • March 8, 2018

Try removing the double quotes in the AttributeExposer.


Forum|alt.badge.img
  • Author
  • 6 replies
  • March 8, 2018

It worked!!

Thank you very much.