Layer7 API Management

Expand all | Collapse all

How do you create a JSON path expression on the gateway (8.2) if there are spaces in it? 

  • 1.  How do you create a JSON path expression on the gateway (8.2) if there are spaces in it? 

    Posted Aug 23, 2017 10:38 AM

    It seems that the assertion does not support spaces in the field names.  An example of such an expression would be: ".responseBody.data.productDetail.Product Attributes.Category Level Three."  I've validated the JSON path expression as valid in different mediums.



  • 2.  Re: How do you create a JSON path expression on the gateway (8.2) if there are spaces in it? 
    Best Answer

    Broadcom Employee
    Posted Aug 23, 2017 11:46 AM

    Hi Darren,

     

    Have you tried something along these lines? I put together a slimmed down sample below. Let me know if perhaps I misunderstood the request.

     

    $.responseBody.data.['Product Attributes'] 

     

    Regards,

    Joe



  • 3.  Re: How do you create a JSON path expression on the gateway (8.2) if there are spaces in it? 

    Posted Aug 23, 2017 11:59 AM

    This did the trick.  Thanks!