Fix JSON build errors

Updated module_json.c to use field_t.value as a union, not as
a pointer.