Handle nil in JSON
Merge pull request #4 from jules2689/json-nil

Handle nil in JSON