question: private void addJsonForEntry ( final StringBuilder result , Entry entry , boolean includeJustTextFields , boolean includeUserWasSignIn , boolean userWasSignedIn , boolean forceQuotationToNote ) throws IOException { result . append ( "\"note\":" + JsonBuilder . quote ( entry . getNoteOrTitle ( "" ) ) + "\n" ) ; result . append ( ",\"quotation\":" + JsonBuilder . quote ( entry . getQuotation ( "" ) ) + "\n" ) ; result . append ( ",\"isPublic\":" + entry . getIsPublic ( ) + "\n" ) ; String typeToAdd = entry . getType ( ) ; if ( typeToAdd . equals ( DbLogic . Constants . quotation ) ) { typeToAdd = DbLogic . Constants . note ; } result . append ( ",\"type\":\"" + typeToAdd + "\"\n" ) ; if ( includeUserWasSignIn ) { result . append ( ",\"userWasSignedIn\":" + userWasSignedIn + "\n" ) ; } if ( includeJustTextFields ) { result . append ( ",\"noteHtml\":" + JsonBuilder . quote ( getNoteHtml ( entry , false , entry . hasQuotation ( ) , true ) ) + "\n" ) ; result . append ( ",\"quotationHtml\":" + JsonBuilder . quote ( getQuotationHtml ( entry , true ) ) + "\n" ) ; } else { final StringBuilder innerResult = new StringBuilder ( ) ; addEntryHtmlToTreeSimple ( entry , innerResult , null , 0 , ! entry . isNotebook ( ) ) ; result . append ( ",\"subtreeHtml\":" + JsonBuilder . quote ( innerResult . toString ( ) ) + "\n" ) ; } }
target:  Adds JSON for the entry. 