My Oracle Support Banner

JSON ARRAY DOES NOT HAVE [] WHEN ONLY ONE ELEMENT IS RETURNED (Doc ID 2265951.1)

Last updated on FEBRUARY 03, 2019

Applies to:

Oracle E-Business Suite Integrated SOA Gateway - Version 12.2.4 and later
Information in this document applies to any platform.

Symptoms

Issue: Facing an issue with JSON arrays returned by ISG REST API.
When data corresponding to pl/sql table is returned we expect to see the JSON
object encapsulated with in []. This seems to work fine when there are more
than one element being returned.

However when there is only one value in the returned table, the [] are
missing. This is causing issues at the client side since the code always
expect an Array.

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.