agent-zero icon indicating copy to clipboard operation
agent-zero copied to clipboard

Dirty JSON Revamping :-)

Open 3clyp50 opened this issue 1 year ago • 1 comments

• removed unused methods _parse_true(), [...]false and [...]null • index handling • error and partial parsing handling • improved handling of unquoted keys/str • fixed peek method skipping current char (self.index +1) and other advancement minor issues • improved multiline string parsing (string end detection) • consistency in whitespace handling

• added unit tests in test_json_parse_dirty.py 1 2 3 4

3clyp50 avatar Sep 20 '24 17:09 3clyp50

A little side note: it looks like the error handling SOMETIMES helps the Agent recover from stuck situations

3clyp50 avatar Sep 20 '24 17:09 3clyp50