Introducing the all-new TIBCO Community site!

For current users, please click "Sign In" to reset your password and access the enhanced features. If you're a first-time visitor, we extend a warm welcome—click "Sign Up" to become a part of the TIBCO Community!

If you're seeking alternative community sites, explore ibi, Jaspersoft, and Spotfire.

Jump to content

When the array has only 1 entry, it is serialized not as an array, but as a single dictionary.


mrigank sevak

Recommended Posts

HI,

 

When i am trying to host a webservice in JSON; if the element is single it doesnt display as an array for json while for multiple it shows a json. Can we fix the conversion for single element in TDV

 

Multi Element - Item - Shown as Array if multiple items

{

"shiporderResponse": {

"shiporder": {

"orderperson": "Able Computing",

"item": [

{

"title": "USA",

"note": "2003-02-04"

},

{

"title": "USA",

"note": "2003-02-08"

}

]

}

}

}

 

Single Element - Item not displayed as Array

{

"shiporderResponse": {

"shiporder": {

"orderperson": "Able Computing",

"item": {

"title": "USA",

"note": "2003-02-04"

}

}

}

}

Link to comment
Share on other sites

×
×
  • Create New...