json-utils-plugin icon indicating copy to clipboard operation
json-utils-plugin copied to clipboard

Stack overflow on JSON path modified

Open vladoriginal opened this issue 6 years ago • 0 comments

Steps:

  1. load this json 2019-11-21T052759.200.txt

  2. paste this search

$.hits.hits[*]._source.trays_cycle['fr']

  1. write some numbers and point inside square brackets

$.hits.hits[*]._source.trays_cycle['fr'.345]

  1. delete numbers and point one by one

Result:

Exception in plugin detected by IDEA

java.lang.StackOverflowError at com.jayway.jsonpath.internal.path.PathCompiler.readNextToken(PathCompiler.java:145) at com.jayway.jsonpath.internal.path.PathCompiler.readDotToken(PathCompiler.java:165) at com.jayway.jsonpath.internal.path.PathCompiler.readNextToken(PathCompiler.java:139) at com.jayway.jsonpath.internal.path.PathCompiler.readPropertyOrFunctionToken(PathCompiler.java:231) at com.jayway.jsonpath.internal.path.PathCompiler.readNextToken(PathCompiler.java:145) at com.jayway.jsonpath.internal.path.PathCompiler.readDotToken(PathCompiler.java:165) at com.jayway.jsonpath.internal.path.PathCompiler.readNextToken(PathCompiler.java:139) at com.jayway.jsonpath.internal.path.PathCompiler.readPropertyOrFunctionToken(PathCompiler.java:231) at com.jayway.jsonpath.internal.path.PathCompiler.readNextToken(PathCompiler.java:145) at com.jayway.jsonpath.internal.path.PathCompiler.readBracketPropertyToken(PathCompiler.java:603) at com.jayway.jsonpath.internal.path.PathCompiler.readNextToken(PathCompiler.java:132) at com.jayway.jsonpath.internal.path.PathCompiler.readPropertyOrFunctionToken(PathCompiler.java:231) at com.jayway.jsonpath.internal.path.PathCompiler.readNextToken(PathCompiler.java:145) at com.jayway.jsonpath.internal.path.PathCompiler.readDotToken(PathCompiler.java:165)

vladoriginal avatar Nov 21 '19 15:11 vladoriginal