Click here to Skip to main content
15,309,768 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Is there any possibility to get json array instead of json object as a result while calling REST API which is built by using Oracle Rest Data Services(ORDS)??

Actual output:
{
"items": [
{
"id": "99",
"name": "SSSS",
"dept": "DDD"
},
{
"id": "12",
"name": "fff",
"dept": "23"
}
]
}

Required output:

{
"items": [
{
["99","SSSS","DDD"]
},
{
["12","fff","23"]
}}

What I have tried:

can we change response specification in ORDS?
Posted
Comments
Meysam Toluie 24-Feb-22 11:33am
   
your expected result is not a json format. Under Items can be array of object but any object must includes key-value pair. Still if you want produce that kind of output you must play with string values.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900