Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X
Hi,
I have just noticed that new extension is out.
JSON Parser Parsley this time.
Does anyone know what are the benefits using this extension compare to traditional way of having json object in JSON property a accessing individual nodes through dots or square brackets?
i.e.
var resultJson = me.getResultsAsJson();
var lastTimestamp = resultJson.timestamp;
me.lastTestDateTime = parseDateISO(lastTimestamp);
// choose only DATA
var arr = resultJson.data;
and so on...
Solved! Go to Solution.
It looks like with this new extension, you can give the ParseJSON service a format through which to read the datetime (so you don't have to give it in milliseconds now, though you still could). You can also give it a data shape and it will return an info table with that data shape, so that's neat because there are all kinds of cool manipulations you can do to info tables which you can't do for just strings of json, and it's all automatic.
It looks like with this new extension, you can give the ParseJSON service a format through which to read the datetime (so you don't have to give it in milliseconds now, though you still could). You can also give it a data shape and it will return an info table with that data shape, so that's neat because there are all kinds of cool manipulations you can do to info tables which you can't do for just strings of json, and it's all automatic.
Thanks, used it, love it.
Speeds up my services quite a bit
Thanks for the feedback :-) I put together this extension so I was really happy to see it show up here and that it's helpful! If you have any feedback or run into any issues with it, please let me know. I'm looking for future enhancements such as adding XML parsing in, etc, in a future update.