[Solved] python program to store a specific string from a file and store it in a variable
First off In your example json file you have inconsistent use of quotation marks, chose ‘ or ” and stick to it. Code import json data = json.load(open(“file.json”)) # this is the variable you are after variable = data[“my_id”] solved python program to store a specific string from a file and store it in a … Read more