public void write ( Project project ) { JsonWriterFactory writerFactory = Json . createWriterFactory ( MapBuilder . of ( PRETTY_PRINTING , true ) . build ( ) ) ; JsonWriter jsonWriter = writerFactory . createWriter ( getWriter ( ) ) ; jsonWriter . write ( ProjectJson . toJson ( project ) ) ; }
Writes the given project definition the form of a JSON document .