Forum Discussion

byter1's avatar
byter1
Occasional Contributor
14 years ago

JSON response not rendered in XML

I am using a REST service request and the response is a JSON string. When the response string is small, it renders the XML tab. If it is big it fails to render in XML. I tried to use the workarounds suggested in the different forums, but to no avail. I am using SOAPUI Pro 4.0.1. The JSON that is failing to render is
{
"requestId": 1565252819,
"result": {
"accountBlockings": [
{
"accountUID": 64,
"changeLog": null,
"creationDate": 1323779574000,
"endTime": 1323865974000,
"exportID": null,
"intervalUID": null,
"itemType": "CHANNEL",
"itemTypeCode": "C",
"itemUID": 9,
"modifiedDate": null,
"originID": null,
"originIdAndKey": null,
"originKey": null,
"serviceProviderID": 1,
"startTime": 1323693174000,
"uid": 21,
"userUID": 64
},
{
"accountUID": 64,
"changeLog": null,
"creationDate": 1323779574000,
"endTime": 1323865974000,
"exportID": null,
"intervalUID": null,
"itemType": "EVENT",
"itemTypeCode": "E",
"itemUID": 4917,
"modifiedDate": null,
"originID": null,
"originIdAndKey": null,
"originKey": null,
"serviceProviderID": 1,
"startTime": 1323693174000,
"uid": 22,
"userUID": 64
}
],
"accountCatalogues": [ {
"barkerChannelRef": null,
"changeLog": null,
"creationDate": 1297787895000,
"description": null,
"entries": [
{
"changeLog": null,
"creationDate": null,
"exportID": null,
"internalOrder": 0,
"modifiedDate": null,
"nodeModel": null,
"nodeSpid": 1,
"nodeType": "C",
"nodeUid": 115,
"originID": null,
"originIdAndKey": null,
"originKey": null,
"serviceProviderID": null,
"treeLevel": 1,
"uid": 114
},
{
"changeLog": null,
"creationDate": null,
"exportID": null,
"internalOrder": 1,
"modifiedDate": null,
"nodeModel": null,
"nodeSpid": 1,
"nodeType": "C",
"nodeUid": 116,
"originID": null,
"originIdAndKey": null,
"originKey": null,
"serviceProviderID": null,
"treeLevel": 1,
"uid": 114
},
{
"changeLog": null,
"creationDate": null,
"exportID": null,
"internalOrder": 2,
"modifiedDate": null,
"nodeModel": null,
"nodeSpid": 1,
"nodeType": "C",
"nodeUid": 117,
"originID": null,
"originIdAndKey": null,
"originKey": null,
"serviceProviderID": null,
"treeLevel": 1,
"uid": 114
},
{
"changeLog": null,
"creationDate": null,
"exportID": null,
"internalOrder": 3,
"modifiedDate": null,
"nodeModel": null,
"nodeSpid": 1,
"nodeType": "C",
"nodeUid": 118,
"originID": null,
"originIdAndKey": null,
"originKey": null,
"serviceProviderID": null,
"treeLevel": 1,
"uid": 114
},
{
"changeLog": null,
"creationDate": null,
"exportID": null,
"internalOrder": 4,
"modifiedDate": null,
"nodeModel": null,
"nodeSpid": 1,
"nodeType": "C",
"nodeUid": 119,
"originID": null,
"originIdAndKey": null,
"originKey": null,
"serviceProviderID": null,
"treeLevel": 1,
"uid": 114
}
],
"exportID": null,
"locale": "en_gb",
"logoImage": null,
"modifiedDate": null,
"modifiedDateML": null,
"name": "VODEO",
"originID": 1,
"originIdAndKey": "1|VDOFRA0001",
"originKey": "VDOFRA0001",
"ownerID": "VDO",
"parentAclUID": null,
"parentPolicyGroupUID": null,
"parentalRating": 1,
"policy": 1,
"policyGroupUID": 1,
"profileUID": null,
"promoUrl": null,
"serviceProviderID": 1,
"skinName": "vodeo",
"sortMask": null,
"subscribableItemType": "CAT",
"uid": 114,
"pPVPurchase": "false",
"subscribed": "false"
}],
"accountPackages": [ {
"changeLog": null,
"channels": null,
"creationDate": 1310139239000,
"deferredExpiryDate": null,
"description": null,
"exportID": null,
"locale": "en_gb",
"minimumSubscriptionLengthIntervalUID": 125,
"modifiedDate": null,
"modifiedDateML": null,
"name": "News TV Package",
"originID": 1,
"originIdAndKey": "1|LYS0003265",
"originKey": "LYS0003265",
"parentAclUID": null,
"parentPolicyGroupUID": null,
"policyGroupUID": 11378,
"policyID": 11378,
"profileUID": null,
"ratingID": null,
"serviceProviderID": 1,
"status": "A",
"subscribableItemType": "PKG",
"uid": 7,
"pPVPurchase": "false",
"subscribed": "false",
"userSubscribable": "true"
}],
"accountPreferences": [ {
"accountUID": 64,
"changeLog": null,
"creationDate": 1323779574000,
"domain": "COD",
"exportID": null,
"modifiedDate": null,
"originID": null,
"originIdAndKey": null,
"originKey": null,
"paramName": "LANGUAGE",
"paramType": "String",
"paramValue": "English",
"serviceProviderID": 1,
"uid": 21,
"userUID": 64
}],
"accountUID": 64,
"activePurchases": [
{
"accountUID": 64,
"alcExpiryDate": null,
"alcStatus": null,
"alcType": "0",
"casId": null,
"changeLog": null,
"consumptionWindowSecs": null,
"copyProtections": null,
"creationDate": 1323779572000,
"expiryDate": 1326457972000,
"exportID": null,
"frequencyType": "REC",
"lastBilledDate": null,
"licenseExpiryDurationSecs": 86400,
"modifiedDate": null,
"originID": null,
"originIdAndKey": null,
"originKey": null,
"parentAclUID": null,
"policyGroupUID": 6346,
"productType": null,
"profileUID": null,
"purchasedItemType": "CAT",
"purchasedItemUID": 114,
"serviceProviderID": 1,
"smartcard": null,
"status": "S",
"uid": 1079,
"userUID": null,
"validFrom": 1323779572000,
"viewingNumber": null
},
{
"accountUID": 64,
"alcExpiryDate": null,
"alcStatus": null,
"alcType": "1",
"casId": null,
"changeLog": null,
"consumptionWindowSecs": null,
"copyProtections": null,
"creationDate": 1323779572000,
"expiryDate": 1372550400000,
"exportID": null,
"frequencyType": "SEP",
"lastBilledDate": null,
"licenseExpiryDurationSecs": 86400,
"modifiedDate": null,
"originID": null,
"originIdAndKey": null,
"originKey": null,
"parentAclUID": null,
"policyGroupUID": 11378,
"productType": "259",
"profileUID": null,
"purchasedItemType": "PKG",
"purchasedItemUID": 7,
"serviceProviderID": 1,
"smartcard": null,
"status": "S",
"uid": 1080,
"userUID": null,
"validFrom": 1323779572000,
"viewingNumber": null
}
],
"defaultLocale": "en_gb",
"deviceEnabled": "true",
"deviceFeatures": [],
"devicePhysicalAddress": null,
"deviceSmartcardID": "77000006478",
"deviceUID": 64,
"publicAddressAPS": "",
"publicAddressSTS": "",
"userFavourites": {"64": [ {
"changeLog": null,
"creationDate": 1323779574000,
"exportID": null,
"itemType": "CHANNEL",
"itemTypeCode": "C",
"itemUID": 9,
"modifiedDate": null,
"originID": null,
"originIdAndKey": null,
"originKey": null,
"prioritySeqNo": 1,
"serviceProviderID": 1,
"uid": 21,
"userUID": 64
}]},
"users": [ {
"acctUID": 64,
"changeLog": null,
"creationDate": 1297855242000,
"defaultUser": "true",
"dob": null,
"exportID": null,
"hashSalt": null,
"loginID": "log163",
"modifiedDate": null,
"name": "name163",
"originID": null,
"originIdAndKey": null,
"originKey": null,
"password": "upwd163",
"pin": "197",
"purchaseAbility": "A",
"ratingID": 1,
"serviceProviderID": 1,
"type": "SUP",
"uid": 64
}]
},
"resultCode": "0",
"token": null
}


I have also validated this JSON and using the online validator suggested in one of the posts and this JSON is a valid JSON. I also tried to increase the outline tab size in global preferences, but that also did not help. Having the XML output helps us a lot for performing different assertions using the wizard driven interface provided in soapui pro.

1 Reply

  • Hello,

    do you get any errors in error log, on failed rendering ?
    If so, can you paste them here ?

    Thanks!

    Vladimir
    SmartBear Software