[Bug] MalformedJsonException exception with valid details.json file
See original GitHub issueDevice information
- Tachiyomi version: 0.9.2
- Android version: 6.0
- Device: Acer B3-A30
Steps to reproduce
- Create a local manga with the following details.json:
{
"title": "Berserk",
"author": "Miura, Kentarou",
"artist": "Miura, Kentarou",
"description": "Guts, a former mercenary now known as the \"Black Swordsman,\" is out for revenge. After a tumultuous childhood, he finally finds someone he respects and believes he can trust, only to have everything fall apart when this person takes away everything important to Guts for the purpose of fulfilling his own desires. Now marked for death, Guts becomes condemned to a fate in which he is relentlessly pursued by demonic beings.\nSetting out on a dreadful quest riddled with misfortune, Guts, armed with a massive sword and monstrous strength, will let nothing stop him, not even death itself, until he is finally able to take the head of the one who stripped him—and his loved one—of their humanity.",
"genre": ["Action", "Adventure", "Demons", "Drama", "Fantasy", "Horror", "Supernatural", "Military", "Psychological", "Seinen"],
"status": "1",
"_status values": ["0 = Unknown", "1 = Ongoing", "2 = Completed", "3 = Licensed"]
}
- Open the local manga’s info tab.
Expected behavior
The entered manga details should be shown.
Actual behavior
There is a toast about a MalformedJsonException and the information is not parsed. If I remove the "_status values"
section, the file is successfully parsed and the data is saved to the local db.
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
MalformedJSONException: Resolving JSON Parsing Errors
json file directly, as they have a very specific format and one minor error will cause the entire file to become invalid. Solution....
Read more >parsing Json File with gson: MalformedJsonException
Therefore I am useing the GSON-Library. Everytime I want to compile I get an Exception in thread "main" com.google.gson.JsonSyntaxException ...
Read more >Unterminated object at line X column YY path $[0].n
Reason - The issue may occur when the JSON file (Test Classes) we attach is not properly validated. There may be some tag...
Read more >[1.10.2] MalformedJsonException with valid JSON in lang file
I'm trying to print strings derived from some JSON in my en_US.lang file to notify the player about updates to a mod.
Read more >Request Urgent Help : Exception in parsing using fromJson
I am getting an error when i parse/deserialize json that has white ... MalformedJsonException: Unterminated object at line 1 column 133
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I could not reproduce this by copy-pasting the text, could you attach the file that doesn’t work? It might be fixed with eb3fff6.
As a side note, the
"_status values"
is a comment for your reference and is not used by the app in any way, and it’s name can be changed if that would help.That would be wierd, the GSON library has a static version number…
implementation 'com.google.code.gson:gson:2.8.6'
Should I re-open the issue?