You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 if the markdown file is a little bit more complex, it produces the effect in the picture below.
Even so, the library can still parse the data correctly, I'm not sure if this is a bug or not.
Here is my class code:
@jsonclassContent {
@jsonIgnoreId id =Isar.autoIncrement;
String title ="";
Category category =Category();
Book book =Book();
String? detail;
}
Here is the code I used for serialization:
...
final writer =CrimsonWriter();
final contents =awaitContent.allContent();
ContentBase64Encode(contents);
writer.writeContentOrNullList(contents);
...
Here is the code I used for deserialization:
...
final crimson =Crimson(await file.readAsBytes());
final contents = crimson.readContentOrNullList();
ContentBase64Decode(contents);
...
The text was updated successfully, but these errors were encountered:
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 if the markdown file is a little bit more complex, it produces the effect in the picture below.
Even so, the library can still parse the data correctly, I'm not sure if this is a bug or not.
Here is my class code:
Here is the code I used for serialization:
Here is the code I used for deserialization:
The text was updated successfully, but these errors were encountered: