[User] JSON Array Cut in REST-BC

edwin.agudelo edwin.agudelo at gmail.com
Tue May 19 13:19:12 BST 2020


I work on a project that expose an REST API. In the definition I have a JSON
array. When the response have just one element the response not have the
JSON array form ([element]) but if have more elements the array is well

This is an example:

With one element:

"ordenDetalles": {
                    "idDetalle": 81,
                    "cantidadItem": 0,
                    "valor": 50000,
                    "idProducto": 3434

With more elements:

"ordenDetalles": [
                        "idDetalle": 482,
                        "cantidadItem": 0,
                        "valor": 0,
                        "idProducto": 1
                        "idDetalle": 483,
                        "cantidadItem": 0,
                        "valor": 0,
                        "idProducto": 4

I try to redefine the XML but not work.

Someone can said me what to do or what to change? 

First of all, Thanks.

*Note*: Sorry for my english.

Sent from: http://openesb-community-forum.794670.n2.nabble.com/

More information about the User mailing list