# How to use JSONParse.js

**URL:** https://discussions.unity.com/t/how-to-use-jsonparse-js/16369
**Category:** Questions & Answers
**Created:** [March 8, 2011, 11:59pm UTC](https://discussions.unity.com/t/how-to-use-jsonparse-js/16369 "2011-03-08T23:59:29Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![system](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/system/32/97283_2.png) [@system](https://discussions.unity.com/u/system)
#### Post date: [March 8, 2011, 11:59pm UTC](https://discussions.unity.com/t/how-to-use-jsonparse-js/16369/1 "2011-03-08T23:59:29Z")

</div>

I can't seem to get JSONParse to work in any fashion.

this code:

```auto
import JSONParse;

function Start(){
    var j = new JSONParse("{a:'string'}");  
}

```

produces the error:

```auto
NullReferenceException: Object reference not set to an instance of an object

```

JSONParse.JSONParse

JSONParse: [http://www.unifycommunity.com/wiki/index.php?title=JSONParse](http://www.unifycommunity.com/wiki/index.php?title=JSONParse)

any help?

---

<div class="post-metadata">

### Author: ![BeHappy](https://avatars.discourse-cdn.com/v4/letter/b/d6d6ee/32.png) [@BeHappy](https://discussions.unity.com/u/BeHappy)
#### Post date: [September 21, 2012, 4:59am UTC](https://discussions.unity.com/t/how-to-use-jsonparse-js/16369/2 "2012-09-21T04:59:03Z")

</div>

@R-GiGgS84, for the error of support slicing, have a look at following links,

[https://github.com/ironmagma/jsonparse/commit/ab4b2ff0603319c915ae32c44f6ee0a88b8f27cc](https://github.com/ironmagma/jsonparse/commit/ab4b2ff0603319c915ae32c44f6ee0a88b8f27cc)  
[https://github.com/ironmagma/jsonparse/commit/b8c389e6670779bc94ec231a48ca4f8eacda0ae1](https://github.com/ironmagma/jsonparse/commit/b8c389e6670779bc94ec231a48ca4f8eacda0ae1)
