{{tag>Function Function_List Text Version:v8.6}} ====== PARSE_JSON ====== ===== Description ===== Parses the specified string in JSON format and extracts a value according to the specified path ===== Syntax ===== ''PARSE_JSON (json, path)'' Cannot be used in the condition of a [[:ref:a_f:a:find|FIND]] action. ===== Parameters ===== Attribute of the Plain Text type or string constant or calculation producing text identifying the string in JSON format to parse and the path in JSONPath format (see [[https://github.com/json-path/JsonPath#getting-started]]) identifying a value to be extracted from JSON. Returns extracted value as a string ===== Returns ===== **Text**: the value at the JSONPath, as a string. ===== Example ===== Customer.City = PARSE_JSON (Customer.Response, '$.address.city') If ''Customer.Response'' holds ''%%{"address": {"city": "Sydney"}}%%'', this sets ''City'' to ''Sydney''. ===== Related ===== [[ref:a_f:f:af:parse_json2|PARSE_JSON2]], [[ref:a_f:f:af:parse_xml|PARSE_XML]], [[ref:a_f:f:af:list_to_json|LIST_TO_JSON]]