Hello everyone,
I am having trouble getting a value from JSON using JSONLibrary’s JSONPath expression.
I have tried the expression on four online JSONPath evaluators, where it worked fine.
My JSON is like this:
*** Known issue ***
If there is a space in JSONPath expression, the module used by this library will throw an exception. Therefore, please avoid the space in JSONPath expression if possible.
@jsonchaos
Sorry for the late response. The project has been abandoned so I don’t have the code anymore.
But I remember the issue was not in spaces. Rather it needed another level of depth, so a missing dot. I didn’t quite understand why, it didn’t make sense to me. But that’s what fixed it.