atmos_jsonc 0.1.0
atmos_jsonc: ^0.1.0 copied to clipboard
Streaming JSONC decoder for Dart by Atom735: comments, trailing commas, path reviver, UTF-8 byte decode, and typed pull binders.
Changelog #
0.1.0 #
EN #
- Initial release: single-pass
jsoncDecode/JsoncDecoder/jsonccodec - JSONC:
//and/* */comments, trailing commas stripJsonchelper (higher memory; prefer direct decode)- Path-aware
reviver(JsoncPathstack) on the direct tree path - SAX
jsoncVisit/JsoncVisitor(no intermediateMap) - Pull API:
JsoncReader,JsoncBinder,jsoncBind - Hot-path opts: manual int parse, local
skipNoise, reusable path stack jsoncDecodeUtf8/JsoncUtf8Decoder/jsoncUtf8(UTF-8 bytes, no fullString)- Benchmarks vs
dart:convertJsonDecoder(time + RSS), plus reviver/bind/utf8 - Runnable examples in
example/example.dart
RU #
- Первый релиз: однопроходный
jsoncDecode/JsoncDecoder/ кодекjsonc - JSONC: комментарии
//и/* */, trailing commas - Хелпер
stripJsonc(больше памяти; лучше прямой decode) - Path-
reviverсо стекомJsoncPathна прямом tree-пути - SAX
jsoncVisit/JsoncVisitor(без промежуточногоMap) - Pull API:
JsoncReader,JsoncBinder,jsoncBind - Оптимизации hot-path: ручной int parse, локальный
skipNoise, reuse path jsoncDecodeUtf8/JsoncUtf8Decoder/jsoncUtf8(UTF-8 байты, без полнойString)- Бенчмарки против
JsonDecoder(время + RSS), плюс reviver/bind/utf8 - Примеры в
example/example.dart