Skip to content

Repository files navigation

jsonc.dart

pub license: BSD CI codecov

JSON with comments and trailing commas.

import 'package:jsonc/jsonc.dart';
final json = jsonc.decode('''
{
  // one-line comment
  "foo": "bar",
  /*
   * multi-line block comment
   */
  "baz": "qux",
}
''');
print(json); // {foo: bar, baz: qux}

About

JSON with comments and trailing commas

Topics

Resources

Stars

10 stars

Watchers

5 watching

Forks

Releases

Used by

Contributors

Languages