intridea/multi_json — pull request #63 by byroot (2012-11-30 01:30:35+00:00)
Title: Allow to load and dump JSON fragments

Hi,

This change allow to load JSON values.
It fix #54, #55, #17 and #13

I know that [json.org](json.org) specify that only arrays and objects are valid JSON documents.
But who said MultiJson should only parse document and not values ?

Ruby libraries:
```ruby
>> Yajl.load('null')
=> nil
>> Oj.load('null')
=> nil
>> JSON.parse('null', quirks_mode: true) # Both json and json/pure
=> nill
```

Javascript
```javascript
>> JSON.parse('null')
=> null
```
For both Chrome native object and JSON2.js by Douglas Crokford author of the JSON spec

Php
```php
php> =json_decode('1') // phpsh to do display null values ...
1
``

Python
```
>>> json.loads('1') # Same for Python ...
1
```

Regards.