php - How to return valid JSON array by WordPress REST API .. Not JSON object?

one text

I'm working on WordPress site and been asked to supply mobile developer by JSON API data for a slider. I have to add the slider data like images and titles etc. I've found a plugin which serve an end point called MetaSlider. I've did required things and the response was perfect. but the developer replied by this:

"I am not talking about data. It should be a valid JSON array. Plz have a look at data structure of response object

"0": {
"id": 2669,
"title": "New Slideshow",

This is not valid json. It should be a JSON Array like this
[ {
"id": 2669,
"title": "New Slideshow","

Does any one have a clue?

I looked for a plugin that can do the job but I didn't find any.

Source