jq.py icon indicating copy to clipboard operation
jq.py copied to clipboard

Switch _ResultIterator to using _Parser

Open spbnick opened this issue 4 years ago • 2 comments

This is an attempt to reuse the _Parser for feeding programs with input data, which enables eventual processing of JSON streams with JQ programs.

Might not be the ideal approach, tell me what you think!

Please see more explanations in individual commit messages.

Based on and requires #51.

spbnick avatar Sep 15 '20 13:09 spbnick

Ah, one undesirable side-effect of this is that we now throw jq.JSONParseError instead of ValueError as some programs might expect. We can forgo the whole idea of a dedicated exception, of course, but I would personally prefer a line in release notes warning about that instead :)

spbnick avatar Sep 15 '20 15:09 spbnick

Added a commit fixing parsing of RS-separated streams (RFC 7464)

spbnick avatar Sep 16 '20 13:09 spbnick

Closing this outdated PR for another attempt.

spbnick avatar May 30 '24 17:05 spbnick