REST API with JSON key

atsuk09221
Level 1
REST API with JSON key

Hello

So, I was implementing REST API by following this documentation. When i tried to retrieve data from a dataset in JSON format. I am expecting the returned data shown with the following JSON format :

{

   data1: 'a',

   data2: 'b'

}, 

{

   data1: 'c',

   data2: 'd'

}

 

But instead, i got this :

[[a,b],[c,d]]

 

Is there any workaround for this issue?

Thank you


Operating system used: Windows 10

0 Kudos
1 Reply
CoreyS
Dataiker Alumni

Hi, @atsuk09221 for the purpose of knowledge sharing we are sharing here what was shared in the support ticket:

The behavior you are seeing is expected and consistent​​​​ with our documentation https://doc.dataiku.com/dss/api/11.0/rest/#datasets-dataset-data-get. As stated here the output of the GET dataset data is an array of arrays:

Screen Shot 2022-10-17 at 11.41.46 AM.png
In the future, we kindly ask that you prioritize one platform for support-related issues per support request. More information can be found here Where do I ask my question? 
Looking for more resources to help you use Dataiku effectively and upskill your knowledge? Check out these great resources: Dataiku Academy | Documentation | Knowledge Base

A reply answered your question? Mark as ‘Accepted Solution’ to help others like you!
0 Kudos