question: produce a jsonarray of jsonobjects from a comma delimited text string using a supplied jsonarray as the source of element names . concode_field_sep PlaceHolder placeHolder concode_field_sep String getValue concode_elem_sep JSONObject rowToJSONObject concode_elem_sep String rowToString concode_elem_sep String toString concode_elem_sep String toString concode_elem_sep JSONArray rowToJSONArray
target: JSONArray function ( JSONArray arg0 , JSONTokener arg1 ) { if ( arg0 == null || arg0 . length ( ) == 0 ) { return null ; } JSONArray loc0 = new JSONArray ( ) ; for ( ; ; ) { JSONObject loc1 = rowToJSONObject ( arg0 , arg1 ) ; if ( loc1 == null ) { break ; } loc0 . put ( loc1 ) ; } if ( loc0 . length ( ) == 0 ) { return null ; } return loc0 ; }