First draft of json schema generation.