Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Zaferozkr
Contributor
Contributor

Converting data from the table to JSON

I want to convert the data I get from a table into JSON format using automation and the attached model, and then serve it within the API. However, the data is returning as a string, not JSON. I would appreciate your support.

 

Below you can see the incorrect string output.

[
"{id:1,name:2222 TEST,sapCode: 12345321,gradeRate:13,grade:TEST1}",
"{id:2,name:2213 TEST sapCode: 12345623,gradeRate:11,grade:TEST2}"
]

 

Zaferozkr_0-1760454775639.png

Zaferozkr_1-1760454787317.png

 

 

Labels (1)
2 Replies
Amit_Prajapati
Creator II
Creator II

Hi @Zaferozkr  ,

Please find the attached JSON you can use to get the details from exsiting JSON file.

salmankojar
Partner - Creator II
Partner - Creator II

Hi @Zaferozkr you don't need to manually create Json content. Just apply Json formula over the output of Get straight table data block using the Add Formula Option. it will format your table data into Json content which can be served to your desired API.