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.
You can either read in the JSON file directly or set the source attribute to that containing the json string. Set the flatten query result to Yes and then you will have to type out the attributes you would like to expose. This will give you the following result:
You can either read in the JSON file directly or set the source attribute to that containing the json string. Set the flatten query result to Yes and then you will have to type out the attributes you would like to expose. This will give you the following result:
I would like a single feature with (in this example) three attributes A,B,C.
Not three features each with attributes name, content.
I would like a single feature with (in this example) three attributes A,B,C.
Not three features each with attributes name, content.
Hi @jdh,
Ah I see, I think a couple more steps are required here.
1. Use a StringConcatenator after the JSONFragmenter to create a new attribute combining name and content
@Value(name):@Value(content)
2. Add an Aggregator with the mode set to Attributes Only. Set the _result from step 1 as the Attribute to Concatenate and the Seperator Character set to the Special Character Newline. If you have multiple attributes you should be able to use the Group By parameter to build separate lists for each attribute here.