Support map to json.