json5 0.8.2
json5: ^0.8.2 copied to clipboard
A lightweight library for encoding and decoding JSON5 with comments and trailing commas support.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add json5With Flutter:
$ flutter pub add json5This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
json5: ^0.8.2Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:json5/json5.dart';