CXin
14 years agoFrequent Contributor
Json is not converted to xml
Here is my JSON response, it is not converted into xml.
{"{http://www.ebayclassifiedsgroup.com/schema/ad/v1}ads-search-options": {
"name": "{http://www.ebayclassifiedsgroup.com/schema/ad/v1}ads-search-options",
"value": {
"q": {
"search-param": "optional",
"search-style": "eq",
"since": "1.0",
"deprecated": "false",
"read": "supported",
"write": "unsupported",
"search-response-included": "supported",
"type": "STRING",
"localized-label": "Keyword"
},
"adStatus": {
"supported-value": [
{
"value": "ACTIVE",
"localized-label": "Active"
},
{
"value": "DELAYED",
"localized-label": "Delayed"
},
{
"value": "EXPIRED",
"localized-label": "Expired"
},
{
"value": "DELETED",
"localized-label": "Deleted"
},
{
"value": "PENDING",
"localized-label": "Pending"
}
],
"search-param": "optional",
"search-style": "eq",
"since": "1.0",
"deprecated": "false",
"type": "ENUM"
},
"adType": {
"supported-value": [
{
"value": "OFFERED",
"localized-label": "Offered"
},
{
"value": "WANTED",
"localized-label": "Wanted"
}
],
"search-param": "optional",
"search-style": "eq",
"since": "1.0",
"deprecated": "false",
"type": "ENUM",
"localized-label": "Offer Type"
},
"priceType": {
"supported-value": [
{
"value": "FREE",
"localized-label": "Free"
},
{
"value": "PLEASE_CONTACT",
"localized-label": "Negotiable"
},
{
"value": "SPECIFIED_AMOUNT",
"localized-label": "Amount"
}
],
"search-param": "optional",
"search-style": "eq",
"since": "1.0",
"deprecated": "false",
"type": "ENUM",
"localized-label": "Price"
},
"priceCurrency": {
"search-param": "optional",
"search-style": "eq",
"since": "1.0",
"deprecated": "false",
"type": "STRING"
},
"minPrice": {
"search-param": "optional",
"search-style": "eq",
"since": "1.0",
"deprecated": "false",
"type": "DECIMAL",
"localized-label": "Min Price"
},
"maxPrice": {
"search-param": "optional",
"search-style": "eq",
"since": "1.0",
"deprecated": "false",
"type": "DECIMAL",
"localized-label": "Max Price"
},
"email": {
"search-param": "optional",
"search-style": "eq",
"since": "1.0",
"deprecated": "false",
"type": "STRING"
},
"userId": {
"search-param": "optional",
"search-style": "eq",
"since": "1.0",
"deprecated": "true",
"type": "LONG"
},
"page": {
"search-param": "optional",
"search-style": "eq",
"since": "1.0",
"deprecated": "false",
"type": "LONG",
"localized-label": "Page"
},
"size": {
"search-param": "optional",
"search-style": "eq",
"since": "1.0",
"deprecated": "false",
"type": "LONG"
},
"locationId": {
"search-param": "optional",
"search-style": "eq",
"since": "1.0",
"deprecated": "false",
"localized-label": "Location"
},
"zipcode": {
"search-param": "unsupported",
"since": "1.0",
"deprecated": "false",
"type": "STRING",
"localized-label": "Postcode"
},
"address": {
"search-param": "unsupported",
"since": "1.0",
"deprecated": "false",
"type": "STRING"
},
"distance": {
"search-param": "optional",
"search-style": "eq",
"since": "1.0",
"deprecated": "false",
"type": "LONG",
"localized-label": "Distance"
},
"distanceUnit": {
"supported-value": [ {
"value": "KM",
"localized-label": "Kilometre"
}],
"search-param": "optional",
"search-style": "eq",
"since": "1.0",
"deprecated": "false",
"type": "ENUM"
},
"categoryId": {
"search-param": "optional",
"search-style": "eq",
"since": "1.0",
"deprecated": "false",
"localized-label": "Category"
},
"attributes": {},
"excludeExternalSource": {
"search-param": "optional",
"search-style": "eq",
"since": "1.0",
"deprecated": "false"
},
"latitude": {
"search-param": "unsupported",
"since": "1.5",
"deprecated": "false",
"type": "DECIMAL"
},
"longitude": {
"search-param": "unsupported",
"since": "1.5",
"deprecated": "false",
"type": "DECIMAL"
},
"sortType": {
"supported-value": [],
"search-param": "optional",
"search-style": "eq",
"since": "1.5",
"deprecated": "false",
"type": "ENUM",
"localized-label": "Sort Type"
},
"userIds": {
"search-param": "optional",
"search-style": "in",
"since": "1.5",
"deprecated": "false"
},
"pictureRequired": {
"search-param": "optional",
"search-style": "eq",
"since": "1.6",
"deprecated": "false",
"type": "BOOLEAN"
},
"modAfter": {
"search-param": "optional",
"search-style": "eq",
"since": "1.7",
"deprecated": "false",
"type": "DATETIME"
},
"modBefore": {
"search-param": "optional",
"search-style": "eq",
"since": "1.7",
"deprecated": "false",
"type": "DATETIME"
},
"histograms": {
"value": [],
"supported-value": [
{"value": "CATEGORY"},
{"value": "LOCATION"},
{"value": "ATTRIBUTE"}
],
"search-param": "optional",
"search-style": "in",
"since": "1.7",
"deprecated": "false"
},
"histogramsExpand": {
"value": [],
"supported-value": [
{"value": "CATEGORY"},
{"value": "ATTRIBUTE"}
],
"search-param": "optional",
"search-style": "in",
"since": "1.7",
"deprecated": "false"
},
"version": "1.13",
"locale": "en_AU",
"supported-locales": "en_AU"
},
"scope": "javax.xml.bind.JAXBElement$GlobalScope",
"declaredType": "com.ebay.ecg.api.spec.v1.schema.ad.AdsSearchOptions",
"globalScope": true,
"nil": false,
"typeSubstituted": true
}}
{"{http://www.ebayclassifiedsgroup.com/schema/ad/v1}ads-search-options": {
"name": "{http://www.ebayclassifiedsgroup.com/schema/ad/v1}ads-search-options",
"value": {
"q": {
"search-param": "optional",
"search-style": "eq",
"since": "1.0",
"deprecated": "false",
"read": "supported",
"write": "unsupported",
"search-response-included": "supported",
"type": "STRING",
"localized-label": "Keyword"
},
"adStatus": {
"supported-value": [
{
"value": "ACTIVE",
"localized-label": "Active"
},
{
"value": "DELAYED",
"localized-label": "Delayed"
},
{
"value": "EXPIRED",
"localized-label": "Expired"
},
{
"value": "DELETED",
"localized-label": "Deleted"
},
{
"value": "PENDING",
"localized-label": "Pending"
}
],
"search-param": "optional",
"search-style": "eq",
"since": "1.0",
"deprecated": "false",
"type": "ENUM"
},
"adType": {
"supported-value": [
{
"value": "OFFERED",
"localized-label": "Offered"
},
{
"value": "WANTED",
"localized-label": "Wanted"
}
],
"search-param": "optional",
"search-style": "eq",
"since": "1.0",
"deprecated": "false",
"type": "ENUM",
"localized-label": "Offer Type"
},
"priceType": {
"supported-value": [
{
"value": "FREE",
"localized-label": "Free"
},
{
"value": "PLEASE_CONTACT",
"localized-label": "Negotiable"
},
{
"value": "SPECIFIED_AMOUNT",
"localized-label": "Amount"
}
],
"search-param": "optional",
"search-style": "eq",
"since": "1.0",
"deprecated": "false",
"type": "ENUM",
"localized-label": "Price"
},
"priceCurrency": {
"search-param": "optional",
"search-style": "eq",
"since": "1.0",
"deprecated": "false",
"type": "STRING"
},
"minPrice": {
"search-param": "optional",
"search-style": "eq",
"since": "1.0",
"deprecated": "false",
"type": "DECIMAL",
"localized-label": "Min Price"
},
"maxPrice": {
"search-param": "optional",
"search-style": "eq",
"since": "1.0",
"deprecated": "false",
"type": "DECIMAL",
"localized-label": "Max Price"
},
"email": {
"search-param": "optional",
"search-style": "eq",
"since": "1.0",
"deprecated": "false",
"type": "STRING"
},
"userId": {
"search-param": "optional",
"search-style": "eq",
"since": "1.0",
"deprecated": "true",
"type": "LONG"
},
"page": {
"search-param": "optional",
"search-style": "eq",
"since": "1.0",
"deprecated": "false",
"type": "LONG",
"localized-label": "Page"
},
"size": {
"search-param": "optional",
"search-style": "eq",
"since": "1.0",
"deprecated": "false",
"type": "LONG"
},
"locationId": {
"search-param": "optional",
"search-style": "eq",
"since": "1.0",
"deprecated": "false",
"localized-label": "Location"
},
"zipcode": {
"search-param": "unsupported",
"since": "1.0",
"deprecated": "false",
"type": "STRING",
"localized-label": "Postcode"
},
"address": {
"search-param": "unsupported",
"since": "1.0",
"deprecated": "false",
"type": "STRING"
},
"distance": {
"search-param": "optional",
"search-style": "eq",
"since": "1.0",
"deprecated": "false",
"type": "LONG",
"localized-label": "Distance"
},
"distanceUnit": {
"supported-value": [ {
"value": "KM",
"localized-label": "Kilometre"
}],
"search-param": "optional",
"search-style": "eq",
"since": "1.0",
"deprecated": "false",
"type": "ENUM"
},
"categoryId": {
"search-param": "optional",
"search-style": "eq",
"since": "1.0",
"deprecated": "false",
"localized-label": "Category"
},
"attributes": {},
"excludeExternalSource": {
"search-param": "optional",
"search-style": "eq",
"since": "1.0",
"deprecated": "false"
},
"latitude": {
"search-param": "unsupported",
"since": "1.5",
"deprecated": "false",
"type": "DECIMAL"
},
"longitude": {
"search-param": "unsupported",
"since": "1.5",
"deprecated": "false",
"type": "DECIMAL"
},
"sortType": {
"supported-value": [],
"search-param": "optional",
"search-style": "eq",
"since": "1.5",
"deprecated": "false",
"type": "ENUM",
"localized-label": "Sort Type"
},
"userIds": {
"search-param": "optional",
"search-style": "in",
"since": "1.5",
"deprecated": "false"
},
"pictureRequired": {
"search-param": "optional",
"search-style": "eq",
"since": "1.6",
"deprecated": "false",
"type": "BOOLEAN"
},
"modAfter": {
"search-param": "optional",
"search-style": "eq",
"since": "1.7",
"deprecated": "false",
"type": "DATETIME"
},
"modBefore": {
"search-param": "optional",
"search-style": "eq",
"since": "1.7",
"deprecated": "false",
"type": "DATETIME"
},
"histograms": {
"value": [],
"supported-value": [
{"value": "CATEGORY"},
{"value": "LOCATION"},
{"value": "ATTRIBUTE"}
],
"search-param": "optional",
"search-style": "in",
"since": "1.7",
"deprecated": "false"
},
"histogramsExpand": {
"value": [],
"supported-value": [
{"value": "CATEGORY"},
{"value": "ATTRIBUTE"}
],
"search-param": "optional",
"search-style": "in",
"since": "1.7",
"deprecated": "false"
},
"version": "1.13",
"locale": "en_AU",
"supported-locales": "en_AU"
},
"scope": "javax.xml.bind.JAXBElement$GlobalScope",
"declaredType": "com.ebay.ecg.api.spec.v1.schema.ad.AdsSearchOptions",
"globalScope": true,
"nil": false,
"typeSubstituted": true
}}