Service Virtualization

Is there an option to check if a particular JSON node is returned in response using JSON assertion in DevTest 8.1??

  • 1.  Is there an option to check if a particular JSON node is returned in response using JSON assertion in DevTest 8.1??

    Posted 07-08-2015 12:59 AM

    Hi,

    I have a requirement where I have to check if Date node is present in the JSON response. Similary to Count(XPATH)

     

    JSON Response:

     

    {

      "Date" : "1998-01-01 23:00:55",

      "name" : "An ice sculpture",

      "price" : 12.50,

      "tags" : ["cold", "ice"],

      "dimensions" : {

      "length" : 7.0,

      "width" : 12.0

      },

      "warehouseLocation" : {

      "latitude" : -78.75

      }

    }