I have a class array where the class looks like:
class Tag{
select: string;
search: string;
}
I want to convert it to JSON where it'll probably look like [{select: "blah", search: "bleh"}, {...}, {...}]
.
Is this possible? Because from the Angular 2 tutorial you can do the opposite with the line:
.map((r: Response) => r.json().data as Hero[]);