Create object hierarchies based on json schema