Closed austinarbor closed 3 years ago
JSON path (jp) can only be used on a data that is in memory and not on a reader. If you are loading a log file or any file that has multiple JSON objects in it then it is possible to evaluate the JSON path against each as it is loaded. I use that quite often with the oj command when dealing with multiple GB files composed of multiple JSON elements.
I didn't see anything mentioned in the documentation, but is it possible to evaluate the json path on a reader, or can you only evaluate the path on a byte array/string? I took a look at the cli code and it looks like the whole file must be read into memory first before it evaluates the expression on it. Is there any way around this?
Thanks