added an interface for using schema data with json instance