Update json.c

Although the original version works as expected, the argument order should be changed to calloc's signature:
void* calloc (size_t num, size_t size);
http://www.cplusplus.com/reference/cstdlib/calloc/
Merge pull request #33 from holyhead/patch-1

Fix order of calloc call