Add wrapper for JSON encoding exceptions because yay consistency
Merge pull request #1093 from yaauie/json-coder-fixes

Add wrapper for JSON encoding exceptions because yay consistency