Before: When creating a file, the CMS would first fetch and read it. Then it would parse it with the JSON transformer if using JSON If the file didn't exist, it would try and parse nothing which always returned an error.
Error always returned from create document:
Malformed JSON code: Unexpected end of JSON input...
Now: Checks if the content passed to the JSON transformer is empty. If so then do not parse and return an empty object {}
Before: When creating a file, the CMS would first fetch and read it. Then it would parse it with the JSON transformer if using JSON If the file didn't exist, it would try and parse nothing which always returned an error.
Error always returned from create document:
```
Malformed JSON code: Unexpected end of JSON input...
```
Now: Checks if the content passed to the JSON transformer is empty. If so then do not parse and return an empty object `{}`