The way you create a JSON document in your OJAI application depends on the language you
use.
Creating JSON Documents in Java OJAI
There are several ways to create JSON documents in your Java OJAI application. They all require you to call the Connection.newDocument method to create a Document object.
Creating JSON Documents in Python OJAI
There are two ways to create JSON documents in your Python OJAI application, one of which is the preferred approach.