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
Releases
latest 12-
0.8.215 Nov 2023Release notes
Open source →- Replaced pedantic package with lints package, fixed some analysis issues (#16)
-
0.8.112 Nov 2023 -
0.8.025 Apr 2022 -
0.7.014 Aug 2021Release notes
Open source →- feat: toEncodable parameter
- feat: toDecodable is default to
toMap()thentoJson()thentoString()
json5Encode(obj, toEncodable: (v) => v.toMap()) -
0.6.116 Mar 2021Release notes
Open source →- feat: serialize iterable objects
- fix: JSON.stringify return non-null String
- fix: indentication can be number and string
-
0.6.016 Mar 2021 -
0.5.504 Jan 2021 -
0.5.402 Jan 2021 -
0.5.321 Oct 2020Release notes
Open source →- fix: json5Decode() should return Map<String, dynamic> instead of Map<dynamic, dynamic>
-
0.5.218 Oct 2020 -
0.5.118 Oct 2020 -
0.5.017 Oct 2020Release notes
Open source →- 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 )