M
M
MeRRFiS2020-12-22 10:54:44
Unity
MeRRFiS, 2020-12-22 10:54:44

ArgumentException: JSON parse error: Invalid value how to solve?

I write all the texts for my game to a JSON file, after I rewrote it, I started getting this error
ArgumentException: JSON parse error: Invalid value.
UnityEngine.JsonUtility.FromJson (System.String json, System.Type type) (at <1386288601af43018501cce2912f52f4>: 0
)
) (at Assets/Script/Lang Script/LangSystem.cs:41)
LangSystem.Awake () (at Assets/Script/Lang Script/LangSystem.cs:27)

But as soon as I remove a certain fragment from it, it starts working. Please tell me what could be wrong and how to fix it?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question