cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

Parsley Parser

tcoufal
13-Aquamarine

Parsley Parser

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...

ACCEPTED SOLUTION

Accepted Solutions
ttielebein
14-Alexandrite
(To:tcoufal)

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.

View solution in original post

3 REPLIES 3
ttielebein
14-Alexandrite
(To:tcoufal)

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.

tcoufal
13-Aquamarine
(To:ttielebein)

Thanks, used it, love it.

Speeds up my services quite a bit

jamesm1
12-Amethyst
(To:tcoufal)

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.

Announcements


Top Tags