Skip to content
Advertisement

Convert JSON array of objects to string array using Typescript

I am using Angular 2 (latest version). I am trying to convert a JSON array i.e.

JavaScript

to a string array and store just the value in i.e

JavaScript

array. I tried to use Stringify method but no luck.

Advertisement

Answer

This should do the job:

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement