code: public static void write(Writer writer, Object jsonObject)
              throws JsonGenerationException, IOException {
          final JsonGenerator jw = JSON_FACTORY.createGenerator(writer);
          jw.writeObject(jsonObject);
      }
docs: Writes the given JSON-LD Object out to the given Writer.
  
  @param writer
  The writer that is to receive the serialized JSON-LD object.
  @param jsonObject
  The JSON-LD Object to serialize.
  @throws JsonGenerationException
  If there is a JSON error during serialization.
  @throws IOException
  If there is an IO error during serialization.