How to create json object like this ? I want to make array and pass it in autocomplete function with json_encode
[
{label:"Display Name for result 1", value:1},
{label:"Display Name for result 2", value:2},
{label:"Display Name for result 3", value:3}
]