Open topic with navigation

# Examples

The YouTube Connector supports data downloaded in either JSON or XML format. If the data is in JSON format, it is converted to XML in a standard way. The root tag of the resulting XML is always `<json>`.

The following is a typical JSON example as it might apply to the YouTube Connector:

    {
    "person":
      [
        {
        "firstName": "John",
        "lastName": "Smith",
        "age": 42,
        "phoneNumber": [ "0123456789", "0987654321" ],
        "address":
          {
          "street": "1 Some Street",
          "city": "Some Place",
          "country": "Somewhere",
          }
        }
      ]
    }

The following is a JSON example as XML with `JsonUseXmlAttributes=False`:

    <json>
      <person>
        <firstName>John</firstName>
        <lastName>Smith>/lastName>
        <age>42</age>
        <phoneNumber>0123456789</phoneNumber>
        <phoneNumber>0987654321</phoneNumber>
        <address>
    	<street>1 Some Street</street>
    	<city>Some Place</city>
    	<country>Somewhere</country>
        </address>
      </person>
    </json>

The following is a JSON example as XML with `JsonUseXmlAttributes=True`:

    <json>
      <person firstName="John" lastName="Smith" age="42">
        <phoneNumber>0123456789</phoneNumber>
        <phoneNumber>0987654321</phoneNumber>
        <address street="1 Some Street" city="Some Place" country="Somewhere"/>
      </person>
    </json>

© Copyright 2019 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm