I have JSON like this:
data {
data1 = 'test',
data2 = 'test2',
data3 = 'test3'
}
and I have this data in my $scope.myJsonData.
How I can read what is inside data2? Is the best way to do this to it like this {{ myJsonData.data[1] }} or is there better ways to do this? Can I somehow read it with name (data2)?
Sorry if this was bad explanation, my english isn't very good. Ask if you need more information.
data1: 'test', etc (with colons)