My current Python Appium test automation framework reads data from JSON file using the json.load()
The value "Ελλάδα" stored in JSON is converted to "Ελλάδα" when json.load() method is called.
Pleases point me to a solution were I can maintain the the actual string value "Ελλάδα"
JSON data in testdata.json
{
"country" : {"country_name" : "Ελλάδα"}
}
JSON load in .py file
with open(file_location) as test_data_obj:
pytest.data = json.load(test_data_obj)
This prints out "Ελλάδα"
print(pytest.data["country"]["country_name"])