DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Pasing JSON in DIADEM scripts

Solved!
Go to solution

Hello,

I'm currently using https://github.com/eklam/VbsJson to parse JSON responses that I get from a database. However, I wondered if anyone knew of a more recent/performant library for doing this please?

Thanks!

0 Kudos
Message 1 of 3
(2,886 Views)
Solution
Accepted by MartinMcD

Hi Martin,

 

For VBS, that version is the best I know, The only thing I have found with that version, is that it does not handle when a array is empty, it will throw an error.  I have attached the one with the fix for that.

 

Also would suggest strongly that you get a json viewer that allows you to see what the json object, actually looks like. You can get one off of github, called jsonviewer, There also exists good one with Visual Studio, and Notepad++ has one as well.  

The weakness with the VBS one is that you have to know the format in the object to parse it once you have the object back. That is where a tool to allow you to see the json tree helps alot.

 

Paul

Message 2 of 3
(2,851 Views)

Great, thank you for that Paul.

0 Kudos
Message 3 of 3
(2,834 Views)