[arrays] Store multiple values in single key in json

I need to store many values in single key of json. e.g.

{
  "number" : "1","2","3",
  "alphabet" : "a", "b", "c"
}

Something like this. Any pointers?

This question is related to arrays json

The answer is


{
  "number" : ["1","2","3"],
  "alphabet" : ["a", "b", "c"]
}

{
    "success": true,
    "data": {
        "BLR": {
            "origin": "JAI",
            "destination": "BLR",
            "price": 127,
            "transfers": 0,
            "airline": "LB",
            "flight_number": 655,
            "departure_at": "2017-06-03T18:20:00Z",
            "return_at": "2017-06-07T08:30:00Z",
            "expires_at": "2017-03-05T08:40:31Z"
        }
    }
};