Refactor json5 files