refactor json type transformations and field meta-data