Hi
I'm new on this forum.
I'm working with json and python and i don't succeed to retrieve some information...
my json:
My code:
Sorry for this perhaps simply question..
Thanks for help
Alex
I'm new on this forum.
I'm working with json and python and i don't succeed to retrieve some information...
my json:
Output:{
"domaine": {
"nom": {
"service": ["test"]
},
}I'm trying to print only: "nom" but don't succeed in it.My code:
with open('/tmp/file.json') as json_file1:
data = json.load(json_file)
for key, value in data.items():
variable = data[domaine]I only success to print only domaine, or all my json, not just "nom"Sorry for this perhaps simply question..
Thanks for help
Alex
