# 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>

_FT_HTML5_bannerTitle.htm