Skip to main content
Solved

Request for Workspace to process recursive json file

  • March 23, 2017
  • 5 replies
  • 20 views

I need help to process json file and write it out in csv. Thanks.

Best answer by david_r

Did you try simply creating a JSON reader and point at your URL? When I do, I get the following reader definition:

You can then simply use a ListExploder on "response{}" and you should be good to go. You can also use the BulkAttributeRenamer in "Remove prefix string" mode to fix up your attribute names, if necessary. Example result after having removed the prefix "0."

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

itay
Supporter
Forum|alt.badge.img+18
  • Supporter
  • March 23, 2017

Ctrl+G and see where you end up...


  • Author
  • March 23, 2017

Ctrl+G and see where you end up...

Can you please be elaborate? Thanks

 

 


david_r
Celebrity
  • Best Answer
  • March 23, 2017

Did you try simply creating a JSON reader and point at your URL? When I do, I get the following reader definition:

You can then simply use a ListExploder on "response{}" and you should be good to go. You can also use the BulkAttributeRenamer in "Remove prefix string" mode to fix up your attribute names, if necessary. Example result after having removed the prefix "0."


itay
Supporter
Forum|alt.badge.img+18
  • Supporter
  • March 23, 2017
Can you please be elaborate? Thanks

 

 

Thats the shortcut in the Workbench application to generate a workspace.

 

This will open a wizard that requires you to input the reader format and location (your url) and writer format and destination.

 

What @david_r suggests can help you 'clean' the content to a better result.

 


  • Author
  • March 24, 2017

Did you try simply creating a JSON reader and point at your URL? When I do, I get the following reader definition:

You can then simply use a ListExploder on "response{}" and you should be good to go. You can also use the BulkAttributeRenamer in "Remove prefix string" mode to fix up your attribute names, if necessary. Example result after having removed the prefix "0."

Thanks David. This is what I got. Please enlighten me further. Its not showing what yours are showing. All I did is in the image attached. Thanks as I await your support.

 

 

@david_r