Layer7 API Management

  • 1.  checking null in json format

    Posted May 01, 2018 06:18 PM

    Hi There,

    I have below json data,if the data is null i want to send some notification to user through return template response.How can i check null data condition in API gateway in the json express i,e curly braces.pls advice.

    {

    "GUID" : "323"

    }

    specifically I want to check null ,for instance ,if the data is null or empty in the curry braces {   } do this,how can i do this in the CA API gateway.



  • 2.  Re: checking null in json format
    Best Answer

    Broadcom Employee
    Posted May 02, 2018 12:20 AM

    the json path assertion can get the value of a json node, then you can use compare assertion to check if it's empty.