crimson 0.3.1 crimson: ^0.3.1 copied to clipboard
Fast, efficient and easy-to-use JSON parser and serializer for Dart.
// ignore_for_file: avoid_print
import 'dart:convert';
import 'package:crimson/crimson.dart';
void main() {
const json = '{"name": "John", "age": 42, "tags": ["a", "b"]}';
final jsonBytes = utf8.encode(json);
final crimson = Crimson(jsonBytes);
final map = crimson.read() as Map<String, dynamic>;
print(map);
}