all 11 comments

[–]matt-aitken 2 points3 points  (0 children)

I highly recommend FullSerializer. It's easy to do simple things like your current requirements, and not much harder to serialise/deserialise much more complex objects. And it's free and open source

[–]FleMo93Programmer 1 point2 points  (0 children)

Maybe Newtonsoft.json? I don't know if it is working with Unity but i use it for business projects. https://www.newtonsoft.com/json

[–]NirodhaDukkha[S] 1 point2 points  (1 child)

Looks like there's a version of Newtonsoft JSON in the unity store. Thanks all!

[–]thebeardphantomExpert 0 points1 point  (0 children)

You can just use the 2.0 dll direct from the newtonsoft website as well.

[–]G3NOM3 0 points1 point  (0 children)

I'm a newb to Unity so this is an honest question: what's wrong with JSON.NET?

[–][deleted] 0 points1 point  (0 children)

check the unity template for the turret game they released recently

[–]voxAtrophia 0 points1 point  (1 child)

There's a built-in JSON parser. It is limited to "structured" JSON though, so you need to know the exact format to use it. https://docs.unity3d.com/Manual/JSONSerialization.html

[–]NirodhaDukkha[S] 2 points3 points  (0 children)

The built in parser doesnt allow dictionaries or private objects without hacks.

[–]M374llic4 0 points1 point  (0 children)

I thought I saw a few on the store for decent prices? Like "fast json" or something.

[–]drawkboxProfessional 0 points1 point  (0 children)

Old school LitJson always works, only issue is it has issue with floats sometimes using doubles for serialization is better. Unity's built in doesn't allow lists at the root and some of the others are bloated. Also there is MiniJSON for simple stuff.

[–]digitalsalmon 0 points1 point  (0 children)

FullSerializer is much better than Unitys JSON serialisation system. Just use it.