FormatException: Expected '}', found ']'.
I have validated the json of saved files and its ok but I am getting this error. what is the issue?
It occurred when using autosave feature
Json exception occured
-
- Posts: 20
- Joined: Tue Apr 20, 2021 4:34 am
Re: Json exception occured
Ok, I found the issue. Easy auto save is saving a component which was no longer there that's what causing this.
Although there should be check for this type of case.
Anyways , I will patch easy save code myself for this case.
Although there should be check for this type of case.
Anyways , I will patch easy save code myself for this case.
Re: Json exception occured
Hi there,
As far as we're aware, Unity provides no reliable way of checking for missing Component references at runtime, so this is unfortunately not something we can account for. Unity should usually throw warnings when there are missing Component references however to indicate that it might cause unexpected behaviour.
All the best,
Joel
As far as we're aware, Unity provides no reliable way of checking for missing Component references at runtime, so this is unfortunately not something we can account for. Unity should usually throw warnings when there are missing Component references however to indicate that it might cause unexpected behaviour.
All the best,
Joel
-
- Posts: 20
- Joined: Tue Apr 20, 2021 4:34 am
Re: Json exception occured
Although you guys are the experts in this field but I think you can check via reflection.
just stop the compilation if you find the es3 autotype reference is null.
I use this asset quite often and you can borrow its code if you like to-
https://github.com/redbluegames/unity-notnullattribute
If I would be able patch that code in coming days I will share with you guys.
Also, thanks for the support
just stop the compilation if you find the es3 autotype reference is null.
I use this asset quite often and you can borrow its code if you like to-
https://github.com/redbluegames/unity-notnullattribute
If I would be able patch that code in coming days I will share with you guys.
Also, thanks for the support
Re: Json exception occured
Hi there,
This would only work if you know what type of Component you're expecting to be missing, but very rarely would this be the case.
All the best,
Joel
This would only work if you know what type of Component you're expecting to be missing, but very rarely would this be the case.
All the best,
Joel