refactor json format