agent-zero
agent-zero copied to clipboard
Dirty JSON Revamping :-)
• 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
A little side note: it looks like the error handling SOMETIMES helps the Agent recover from stuck situations