More work on JSON schema, about 80% done.