save
Syntax
Details
Example
var server = "https://my_json_server.com"
buffer response = http GET ${server}/generatetoken
# Save a copy of the original server response for diagnostic purposes
save {response} as "${baseDir}\diagnostics\token.json"
# Create a variable called ${secret_token} from the 'access_token'
# string in the JSON in the {response} buffer
var secret_token = $JSON{response}.[access_token]
# We no longer need the {response} buffer as the value extracted
# from it is stored in a variable
discard {response}Last updated