Use JSON as output for dict_to_key