I am trying to get property name in JSON response object in Java Spring Boot using JsonPath. I want to acces first (or second) property name, but I don´t want to hardcode them.
I find out that when I use * wildcard, selecting multiple nodes is not supported.
JSON format is:
{
   "item1": [
     {...},
     {...},
     {...},
    ],
   "item2": [
     {...},
     {...},
     {...},
    ],
}
Do you have any idea, if this is posible?
Thank you