Unify json.c compilation