Facebook Connector 12.11

# Examples

The Facebook 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 Facebook 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 2022 Micro Focus or one of its affiliates
Version 12.11 | Last updated February 2022

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to swpdl.idoldocsfeedback@microfocus.com.

We appreciate your feedback!

Product: IDOL Facebook Connector 12.11

Topic Title: Examples