Service Virtualization

 View Only

Expand all | Collapse all

Capture Request of JSON file and send Response to MQ as a plain text.

  • 1.  Capture Request of JSON file and send Response to MQ as a plain text.

    Posted Apr 20, 2026 03:27 AM

    Hello Everyone,

    Good afternoon.

    Scenario:

    I have a request that contains JSON data; however, before the JSON payload, there is a 31‑character alphanumeric string.

    I need to extract the first 24 characters from this 31‑character string and send those 24 characters as a response to IBM MQ.

    I tried using a JSONPath filter, but it only parses the JSON payload and does not capture the 31‑character data that appears before the JSON.

    Could you please suggest how I can capture the entire request and extract the required portion from it?



    -------------------------------------------


  • 2.  RE: Capture Request of JSON file and send Response to MQ as a plain text.

    Broadcom Employee
    Posted Apr 20, 2026 09:46 AM

    Sravankumar,  you can use a filter to extract the characters to a property value using -

    Create Property Based on Surrounding Values Filter  -  

    https://techdocs.broadcom.com/us/en/ca-enterprise-software/devops/devtest-solutions/10-8/reference/filter-descriptions/utility-filters/create-property-based-on-surrounding-values.html

    if you still need help,  please provide a sample Json Payload.  

    Thanks

    Shiney

    -------------------------------------------