I have a JSON file, where I need to count the subscriptions entries.
So for example ID=0 should give me a 2 back, cause 2 entries, ID=1 a 3 and so on.
I thought Object.keys(users.subscriptions).length; should do it.
But this gives me a 21 back, so it counts each character, instead of entries.
I thought it might be some Database problems, but I dont know for sure.
I use postgresql and specific for subscriptions, I used text[] as type.
