Forum Discussion

m_essaid's avatar
m_essaid
Valued Contributor
6 years ago
Solved

querying JSON strings

Hi, I have some JSON strings I would like to query (have the list of a node, the count...). Is this possible ? Thank you, Mehdi
  • AlexKaras's avatar
    6 years ago

    Hi Mehdi,

     

    JScript/JavaScript contains built-in JSON support.

    My guess is that Python should have relevant library as well.

    For other script languages you have two options: a) create jScript-based Script Extension to process JSON as required; or b) use some third-party library and use it from your test code.

    Because of certain considerations, I went the latter way and tried .Net Newtonsoft.Json.dll. The current overall result is positive though I am still in the process of implementing the functionality that I would like to have in my test code.