Looking for a C# solution? Try JSONObject.
I (Tonio Loewald/podperson) reworked this code pretty extensively and it seems to work for me. I have not tested it extensively (yet) but it should be pretty easy to identify and fix any remaining errors as quite a bit of "voodoo" has been removed. It now runs well for me in iOS. Since I haven't tested my application yet, I'm leaving the warning in tact.
This software has known bugs. It does not seem to build for iOS and has not been tested on Unity 4. If you have problems with this script, please report them to the author and use JSONObject until the issue is fixed.
What is it?
Why not just use eval()?
The problem with eval() as far as Unity goes is that it just translates your UnityScript into Boo then compiles it to the Mono CLR, as it does with the rest of your code before it can get run. As a result, eval() is really, really slow. So it's best to just parse it at runtime without having to compile.
Note: it's considered a REALLY BAD idea to use eval on JSON even aside from technical issues. It's a huge security hole and leaves you vulnerable to code-injection/man-in-the-middle attacks.
Where's the code?
I've linked this to an extensively modified version of the earlier code which compiles for mobile, has a convenient (strongly typed) wrapper object, and while lets you fairly conveniently create as well as consume JSON data.
The original code is here: