public String getString ( int index , String otherwise ) { Object o = list . get ( index ) ; if ( o == null ) return otherwise ; if ( o instanceof String ) return ( String ) o ; if ( o instanceof byte [ ] ) return encodeBinary ( ( byte [ ] ) o ) ; throw new JsonException ( "not a string" ) ; }
Returns the String at index or otherwise if not found