crimson icon indicating copy to clipboard operation
crimson copied to clipboard

Fast, efficient and easy-to-use JSON parser and serializer for Dart.

Results 10 crimson issues
Sort by recently updated
recently updated
newest added

- bump dependencies - fix freezed support - cleanName trims the leading `_$` and trailing `Impl` from freezed classes - fix generation of FromFactory for freezed classes - fix lints...

When encoding any enum field with JsonName annotation, the annotated name is not serialized to output, rather just the enum value.name is used.

If i use part directive import like this, it is not recognized while running build_runner. `part '../generated/models/message.g.dart';`

Let's say we have a `Tweet` class that uses `Reply` as a field. This works on non freezed classes ```dart @json class Tweet { DateTime? created_at; String? tweet; Reply? reply;...

Would be very helpful if this limitation could be lifted: > Important: You can only use a pointer prefix once in a class. For example, you can't use /user and...

The README states that the `fromJson` factory takes a `Uint8List` as does the `fromBytes` factory. If that's the case, then what's the difference? What I believe happened is a copy-paste...

I want to save markdown text as json file, I first encode the text by base64 and then convert it to json string by this library. But I found that...

Hi Simon, I saw that you've implemented Json Pointer(RFC 6901) and I'm just wondering if it's possible to only use the pointer without the serialization? Thanks!

It would be nice to be able to disable generating serialization or parsing code as such: ```dart @Json(toJson: false, fromJson: true) // or some other names class MyModel { //...

enhancement

### Discussed in https://github.com/simc/crimson/discussions/8 Originally posted by **Reprevise** December 31, 2022 I have a class like this: ```dart class ApiResponse extends Equatable { final List? errors; final T? data; const...

enhancement