Rename to_json functions to a more correct to_dictionary