I have the following json object:
{
"posts" : {
"-Jk3ipZ2EFgvkABHf9IX" : {
"category" : "JavaScript",
"date" : 1426008529445,
"heading" : "Lorem",
"text" : "dsvgfjds daefsrgfs defsds dsfsdds",
"user" : "Mitko"
},
"-Jk3jFbOOE9V8Yd37tWj" : {
"category" : "C#",
"date" : 1426008640253,
"heading" : "Lorem",
"text" : "Some Text!",
"user" : "Peter"
}
}
}
I'm using Angularfire for my app. Is there a way for me to query this json and just extract the category names or am I supposed to create an additional object for the categories and query that way. I am asking because it feels redundant to query the whole array for just one value.
Thanks in advance