jsonc 0.0.1 jsonc: ^0.0.1 copied to clipboard
JSON with comments and trailing commas.
import 'package:jsonc/jsonc.dart';
void main() {
final json = jsonc.decode('''
{
// one-line comment
"foo": "bar",
/*
* multi-line block comment
*/
"baz": "qux",
}
''');
print(json); // {foo: bar, baz: qux}
}