jsonc 0.0.3 jsonc: ^0.0.3 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}
}