from types import SimpleNamespace
json_data = {
"name": "Terminal",
"packageName": "application",
"order": 20,
"versionName": "1.37"
}
data = SimpleNamespace(**json_data)
print(data.name)
print(data.order)
#добавляем новое поле
data.new_field = "boo"
print(data)
Terminal
20
namespace(name='Terminal', packageName='application', order=20, versionName='1.37', new_field='boo')