BC Break, fixes JSON encoding & decoding for empty results.

Empty json like '{}' produced the following data in `$request->data`.
```
array("0" => "{}")
```
which can potentially leads to some:

```
array(
    "$set" => array(
        "0" => "{}"
    )
}
```
if this data is used in a mongo context to update a record for example.