zikzak_json 0.2.3
zikzak_json: ^0.2.3 copied to clipboard
A best-effort JSON parser using simdjson_dart for speed and json5_plus for flexibility.
0.2.3 #
extractJsonno longer throws on undecodable strings — a bare token, ID, or page fragment (neither JSON nor JSON5) now yieldsnullinstead of the engines'FormatException. Extraction is best-effort by contract;decodekeeps throwing for callers that want strictness.- Raised dependency floors —
json5_plus ^0.1.8,simdjson_dart ^1.6.1(both already allowed by the previous caret ranges; now required).
0.2.2 #
- Pinned
json_path_plusto^1.1.0— ensures consumers get the latest fixes (reverse slices, backtick properties,!@negation).
0.2.1 #
- Updated
json_path_plusto^1.1.0— picks up the 1.1.0 fixes (reverse slices, backtick properties,!@negation,typeof null). Zero new dependencies.
0.2.0 #
- JSONPath now uses
json_path_plus— replaces the oldjson_path0.9.0 dependency with the in-housejson_path_plus: ^1.0.0. This brings native@property,@.indexOf(),===, type operators, and zero transitive dependencies. No custom function registration needed for filter expressions. - Updated
simdjson_dartto^1.1.0— picks up the latest performance improvements and fixes from the upstream PR. - Removed vendored
json_path_plussource in favor of the published pub.dev package.
0.1.0 #
- Initial release.
- Dual-engine JSON parser: simdjson for speed, json5_plus for flexibility.
- Automatic fallback: standard JSON goes through simdjson; JSON5 with comments, unquoted keys, or trailing commas falls back to json5_plus.
- Fast-path heuristic detects JSON5 features early to avoid predictable simdjson failures.
- Recursive
toRaw()conversion stripsJson5wrapper objects into pure DartMap/Listtypes. encode(),extractJson(), typed convenience methods (decodeMap,decodeList,decodeString), and detection helpers (isJson,isJson5).- Dot-notation path extraction via
get()for safe nested access.