convert an object that may or may not be a jsonelement into its json object representation , handling the case where it is neither in a graceful way . concode_field_sep int MAX_DEPTH concode_field_sep String convert concode_elem_sep Method getMethod concode_elem_sep JsonElement mapObject
JsonElement function ( Object arg0 ) { if ( arg0 == null ) { return JsonNull . INSTANCE ; } try { return convertObject ( arg0 , MAX_DEPTH ) ; } catch ( Exception loc0 ) { throw new WebDriverException ( "srini_string" + arg0 , loc0 ) ; } }