Page 1 of 1

JSON Array properties to array

Posted: 20 Mar 2017, 13:05
by carlbtv
The JSON nodes are great!

It would be useful to be able to get access to a given property within an array of JSON objects as a Ventuz array for further processing.

For example, take the following JSON defining a list of generic events:

Code: Select all

{
	Events: [{
			"Name": "Event1",
			"EventTime": 1.23
		}, {
			"Name": "Event2",
			"EventTime": 2.63
		}, {
			"Name": "Event3",
			"EventTime": 4.2
		}
	]
}
If I have some sort of top level controller that's triggering the events, I'd like to get at the EventTime properties as a single float array: 1.23,2.63,4.2

Another example may be data for a bar chart - I need to get at the Min/Max values. For a Pie chart, it would be useful to get the values to work out the total (...even easier if Array Analysis had a Sum property 8-) )

Thanks
Carl

Re: JSON Array properties to array

Posted: 08 Jun 2017, 15:13
by Eric_RD
+1

Re: JSON Array properties to array

Posted: 08 Jun 2017, 15:17
by Joe Styles
I've only just noticed the edit button on the json parser which I had missed because I thought you had to have all the properties there to update it and not loose any links :)