JsonToXml Function

Description:

This function converts a JSON message to XML. A description of the XML tags representing a JSON message can be found in the XML representation of JSON messages section.

Format:

result = JsonToXml(input_string);

Parameter:

input_string

A string expression from contains a JSON message

Example:

SUBMIT POST "http://10.1.10.195/examples/json/remote" IDENTIFIER 2 REFERER 1
JSON
    "<JsonParser:node type=\"object\">"
         "<firstName type=\"string\">John</firstName>"
         "<lastName type=\"string\">Smith</lastName>"
    ...
    "</JsonParser:node>"
    _JsonToXml=JsonToXml(CONTENT)
    result=XML_GetElementText(_JsonToXml, "/JsonParser:node[1]/address[1]/city[1]", 1)
   

See also:





Go back to the Learning center:


Copyright © AgileLoad. All rights reserved.
Agile Load testing tool| Contact AgileLoad | Terms of Use | Sitemap