Skip to main content

atmos_jsonc 0.1.0 copy "atmos_jsonc: ^0.1.0" to clipboard
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 / jsonc codec
  • JSONC: // and /* */ comments, trailing commas
  • stripJsonc helper (higher memory; prefer direct decode)
  • Path-aware reviver (JsoncPath stack) on the direct tree path
  • SAX jsoncVisit / JsoncVisitor (no intermediate Map)
  • Pull API: JsoncReader, JsoncBinder, jsoncBind
  • Hot-path opts: manual int parse, local skipNoise, reusable path stack
  • jsoncDecodeUtf8 / JsoncUtf8Decoder / jsoncUtf8 (UTF-8 bytes, no full String)
  • Benchmarks vs dart:convert JsonDecoder (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
0
likes
150
points
108
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Streaming JSONC decoder for Dart by Atom735: comments, trailing commas, path reviver, UTF-8 byte decode, and typed pull binders.

Repository (GitHub)
View/report issues

Topics

#json #jsonc #parser #streaming

License

MIT (license)

More

Packages that depend on atmos_jsonc