I have a JSON object that has the following structure
{"30-31":[{"msg":"hello","usr":"31"}],
"33-30":[{"msg":"shah hi","usr":"30"}]}
What operation can I perform to get an array like this ["30-31", "33-30"]
.
I tried my best using .map
etc but with no success, can anybody help?