with open(prompts_path, 'r') as f:
prompts = json.load(f)
location = random.choice(prompts['prompts']['locations']).strip('"')
pose = random.choice(prompts['prompts']['poses']).strip('"')
clothing = random.choice(prompts['prompts']['clothing']).strip('"')
here a python code that extract values from json (just to explain what I need)