Twitter typeahead expects a Javascript array type. Thus, you will need to convert the JSON object to a legitimate array using JSON.parse(myJSONObject). However, typeahead also expects an array of strings, not an array of arrays ... So the question is: what parameter of these arrays are you trying to show in typeahead?
{
"id":"2",
"pid":"0",
"type":"Group",
"code":"g",
"status":"1"
}
, vals id. , source x. jsFiddle: