update json error handling
Merge branch 'phoenix' of https://github.com/InvictusInnovations/fc into phoenix