jx 1.0.5 jx: ^1.0.5 copied to clipboard
The dart jx parser. jx is a super-set of JSON that supports core JSON but adds many more powerful features, like comments, variables, functions and more.
import 'package:jx/jx.dart';
void main() {
String jx = '''{
// This is an example jx file
\$code: 'jx';
name: code + ' file format (.' + code + ')';
}''';
var parser = JxParser();
var result = parser.parse(jx);
print(result['name']); // jx file format (.jx)
print(result.variables['code']); // jx
}