2

I have a JSON string that's of the format:

[{"topic":0},{"topic2":2}]

Using jsonpath expression like:

$.*

I can extract the values, ie, 0, 2 - but I cant' find any way of getting the variable name to the left of the ':' - is this possible using JsonPath?

For example, I would want an expression that would give me: "topic", "topic2", (etc) (variable number of name/value pairs).

1 Answer 1

1

From what I know it's impossible.

Sign up to request clarification or add additional context in comments.

1 Comment

you were correct, @Dmytro - I had to change the format of the json - it was wrong.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.