question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug] MalformedJsonException exception with valid details.json file

See original GitHub issue

Device information

  • Tachiyomi version: 0.9.2
  • Android version: 6.0
  • Device: Acer B3-A30

Steps to reproduce

  1. 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"]
}
  1. 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:closed
  • Created 3 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ChrisJAllancommented, May 13, 2020

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.

0reactions
darthmooguycommented, May 15, 2020

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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found