Forum Discussion

paul_igoe's avatar
paul_igoe
Contributor
7 years ago

Experience of JSONPath in JScript or JavaScript? (or JSON to XML convertor?)

Hi Friends,

 

I need to execute JSONPath queries for a new TestComplete project, wondering if anybody has experience of doing this, preferably in JScript or JavaScript.

 

I have tried Stefan Goessner's implementation, which initially looked promising, but later failed with more complex tests. (also fails at this JSONPath Expression Tester, so does seem to be a bug). At the same site, the same tests ran ok with the Flow Communications implementation, so I'll look at integrating that but that's in php, not my strong point :-s

 

I know SoapUI provides JSONPath queries, so I'm hoping the Smartbear folk can give me some pointers...  Or can anybody  point me to a more robust J*Script implementation?

 

I'm aware another option might be to convert JSON to XML and use standard XMLPath libraries.

Again, any recommendations for a robust JSON to XML convertor (ideally free)?

 

Kind Regards,

Paul

 

 

No RepliesBe the first to reply