Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Fichero Python - Leer un JSON con Python - Daviddelatorre.me
import json
f = open("Entities.json", "r")
content = f.read()
jsondecoded = json.loads(content)
for entity in jsondecoded["Classes"]:
print("Entidad " + entity["Name"] + ". Sus propiedades son: ")
for entityProperty in entity["Properties"]:
print("Propiedad " + entityProperty["Name"] + " de tipo " + entityProperty["Type"])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment