JSON Array:
[ { sw: 'NODE.JS' }, { sw: 'Heroku Toolbelt' } ]
need to convert it to:
['NODE.JS','Heroku Toolbelt'].
Any quickest help will be highly apprecaited.
JSON Array:
need to convert it to:
Any quickest help will be highly apprecaited. |
||||
add comment |
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the question.
I'd use
Don't forget to get the actual JavaScript array from the JSON string with |
|||||
|
Try this:
|
|||||
|
for
loop? or you don't know how to add items to a new Array? – cookie monster 15 hours ago