question: adds a string property as string literal optionally . adds quotes and does json string escaping , as described at json.org . concode_field_sep StringBuilder params concode_field_sep JSONBuilder item concode_elem_sep JSONBuilder beginArray concode_elem_sep JSONBuilder beginMap concode_elem_sep JSONBuilder beginMap concode_elem_sep JSONBuilder endMap concode_elem_sep String escapeString concode_elem_sep JSONBuilder create concode_elem_sep String toString concode_elem_sep void appendCommaAndKey concode_elem_sep JSONBuilder endArray concode_elem_sep void conditionallyAppendComma
target: JSONBuilder function ( String arg0 , String arg1 , boolean arg2 ) { appendCommaAndKey ( arg0 ) ; if ( arg2 ) { params . append ( arg1 ) ; } else { arg1 = escapeString ( arg1 ) ; params . append ( '"' ) . append ( arg1 ) . append ( '"' ) ; } return this ; }