jx 1.0.5 copy "jx: ^1.0.5" to clipboard
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.

example/jx_example.dart

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
}
1
likes
140
points
31
downloads

Publisher

unverified uploader

Weekly Downloads

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.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

More

Packages that depend on jx