Let say I have JSON object below:
var name = [
{
"first": "juan",
"last": "delaCruz"
},
{
"first": "james",
"last": "bond"
}
]
Can we use JSON.stringify
to have the output:
juan, james
Let say I have JSON object below:
] Can we use
|
||||
You might be looking for
|
|||
|
Since the expected output doesn't appear to be valid JSON, you won't be able to get it with just But, you could combine
|
||||
|
JSON.stringify
can't produce the stringjuan, james
, since that isn't legal JSON. – Ted Hopp Sep 24 '13 at 4:00