added code that actually saves the JSON in the schema properly