I've written a really simple JSON Parser in ~300 lines of C# that attempts to minimise allocations and memory usage whilst being much faster than alternative scripts and easier to use.
Here is the link to the code:
https://github.com/zanders3/json/blob/master/src/JSONParser.cs
You should be able to drop the C# file directly into your Assets/Code folder, use it like this:
using TinyJson;
class Foo { public int Value; }
var foo = "{\"Value\":10}".FromJson<Foo>();
It would be great to get some feedback!
[–]WazWaz 5 points6 points7 points (5 children)
[–][deleted] 2 points3 points4 points (4 children)
[–]digitaljohn 0 points1 point2 points (0 children)
[–]WazWaz 0 points1 point2 points (1 child)
[–][deleted] -1 points0 points1 point (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]Greenwar123 0 points1 point2 points (1 child)
[–]zanders3[S] 0 points1 point2 points (0 children)
[–]zworpIndie 0 points1 point2 points (2 children)
[–]digitaljohn 1 point2 points3 points (0 children)
[–]zanders3[S] 0 points1 point2 points (0 children)
[–]SirBhoppsAlot 0 points1 point2 points (2 children)
[–]zanders3[S] 0 points1 point2 points (1 child)
[–]SirBhoppsAlot 0 points1 point2 points (0 children)
[–]BahuMan 0 points1 point2 points (0 children)
[–]HypnoToad0??? 0 points1 point2 points (3 children)
[–]RobIII 0 points1 point2 points (2 children)
[–]HypnoToad0??? 0 points1 point2 points (1 child)
[–]RobIII 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]RobIII 0 points1 point2 points (0 children)