Forum Discussion

Wasfi_Bounni's avatar
Wasfi_Bounni
Icon for Cirrocumulus rankCirrocumulus
Nov 21, 2019

Extracting dynamic parameter values from a "Jason" formatted response.

Hi

 

I want to see if the dynamic parameter values can be extracted from a http response payload that contains "JSON" key:value pairs.

 

My concern is that a parameter like firstname is sent in the following formatt:

 

"firstname": "John"

 

Which is a different to the format that is usually parsed in http "HTML payloads"

 

Kindly

Wasfi

  • An almost perfect place to start using iRulesLX

     

    Have an ordinary iRule (WHich is TCL) call out to an iRulesLX rule (Which is written in NodeJS). That can then parse the JSON data for you and return the value for the key you're looking for.

     

  • Hamish's avatar
    Hamish
    Icon for Cirrocumulus rankCirrocumulus

    An almost perfect place to start using iRulesLX

     

    Have an ordinary iRule (WHich is TCL) call out to an iRulesLX rule (Which is written in NodeJS). That can then parse the JSON data for you and return the value for the key you're looking for.