PackageTrack
Sign in Get early access

json5

A lightweight library for encoding and decoding JSON5 with comments and trailing commas support.

0.8.2 7.6K downloads/mo #3302 most downloaded on pub.dev damphat/json5-dart

What this package is like to depend on

Last release 3 years ago

no release in 18 months

Release timing varies

gaps range from 2 months to 1.6 years

Nearly every release is documented

notes for 12 of 12 stable releases

Nothing withdrawn

no release was ever pulled

6 years old

12 releases · first in 2020

0 releases in the last 12 months

see the full history below

Release timeline

12 releases · Oct 2020 to Nov 2023
2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 12
  1. 0.8.2 15 Nov 2023
    Release notes
    • Replaced pedantic package with lints package, fixed some analysis issues (#16)
    Open source →
  2. 0.8.1 12 Nov 2023
    Release notes
    • Updated package description, fixed analysis issues (#15)
    Open source →
  3. 0.8.0 25 Apr 2022
    Release notes
    • feat: values without decimal point or exponent should be int type
    Open source →
  4. 0.7.0 14 Aug 2021
    Release notes
    • feat: toEncodable parameter
    • feat: toDecodable is default to toMap() then toJson() then toString()
        json5Encode(obj, toEncodable: (v) => v.toMap())
    
    Open source →
  5. 0.6.1 16 Mar 2021
    Release notes
    • feat: serialize iterable objects
    • fix: JSON.stringify return non-null String
    • fix: indentication can be number and string
    Open source →
  6. 0.6.0 16 Mar 2021
    Release notes
    • Migrating to null safety
    Open source →
  7. 0.5.5 04 Jan 2021
    Release notes
    • hotfix: dart not support '\0' escape
    Open source →
  8. 0.5.4 02 Jan 2021
    Release notes
    • Fix: RangeError when stringify a string with ending '\0'
    Open source →
  9. 0.5.3 21 Oct 2020
    Release notes
    • fix: json5Decode() should return Map<String, dynamic> instead of Map<dynamic, dynamic>
    Open source →
  10. 0.5.2 18 Oct 2020
    Release notes
    • support runtime-js, flutter web
    Open source →
  11. 0.5.1 18 Oct 2020
    Release notes
    • fix: cannot stringify object if their keys are not string .
    Open source →
  12. 0.5.0 17 Oct 2020
    Release notes
    • supports Map, List, null, num, bool, String
    • JSON5.parse( aString );
    • JSON5.stringify( anObj )
    • JSON5.stringify( abObj, space:2 )
    • json5Decode( aString );
    • json5Encode( anObj )
    • json5Encode( abObj, space:2 )
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive