{{tag>Function Function_List Text Version:9.0}} ====== PARSE_JSON2 ====== ===== Description ===== Returns the value of the specified attribute in the same node ===== Syntax ===== ''PARSE_JSON2 (json, path, attribute)'' ===== Parameters ===== - String in JSON format or expression producing such a string - A path to a JSON attribute in the JSONPath format (as explained here https://github.com/json-path/JsonPath)\n - The name of the JSON attribute in the same node, the value of which should be returned ===== Returns ===== **Text**: the value of the named attribute in the same JSON node that the path matches. ===== Example ===== Object.Value = PARSE_JSON2(Object.Attribute, `$.store.books[?(@.Name == 'Romeo and Juliet')]`, 'Author') The above returns 'Shakespear' ===== Related ===== [[ref:a_f:f:af:parse_json|PARSE_JSON]], [[ref:a_f:f:af:parse_xml|PARSE_XML]], [[ref:a_f:f:af:list_to_json|LIST_TO_JSON]]