Jump to content

Open Community  ·  636 members

Stardew Valley

My mod is giving a "Cannot deserialize the current JSON array"


dragon3025

Recommended Posts

My SMAPI log: https://smapi.io/log/b42f257627d3421d8515e7c4f601414f

My content.json: https://pastebin.com/q6BLUHF3

 

According to visual studio code and some other programs, my json is valid. I can't figure out what to do.

 

Edit: If I replace the square brackets with curly ones, it gives me this error: https://smapi.io/json/content-patcher/0f3481b3459545458167f0be84fb8fb2

Edited by dragon3025
Link to comment
Share on other sites

sidepanel hot topic response. I don't play this game, but the symptom sounds familiar

 

check the file format. It's possible that, like many json parsers, it requires a specific format, perhaps UTF-8 or similar, which windows programs don't always adhere to by default when saving a file.

Link to comment
Share on other sites

sidepanel hot topic response. I don't play this game, but the symptom sounds familiar

 

check the file format. It's possible that, like many json parsers, it requires a specific format, perhaps UTF-8 or similar, which windows programs don't always adhere to by default when saving a file.

According to Visual Studio Code, it's UTF-8, which is the same as a file from "Elle's Town Animals"'s content.json which is also UTF-8.

Link to comment
Share on other sites

Well... it was worth a shot. Perhaps there's some minor syntax error that visual studio ignores but that this game's parser doesn't.

 

sorry I couldn't help. best of luck.

Thanks for trying :D. I got help on reddit. I had an extra bracket at the end that threw me off. There was supposed to be a another bracket to close "ConfigSchema" before "Changes".

Edited by dragon3025
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...