Make a JSON text of this JSONArray. For compactness, no unnecessary whitespace is added. If it is not possible to produce a syntactically correct JSON text then null will be returned instead. This could occur if the array contains an invalid number. Warning: This method assumes that the data str
()
| 929 | * array. |
| 930 | */ |
| 931 | @Override |
| 932 | public String toString() { |
| 933 | try { |
| 934 | return this.toString(0); |
| 935 | } catch (Exception e) { |
| 936 | return null; |
| 937 | } |
| 938 | } |
| 939 | |
| 940 | /** |
| 941 | * Make a prettyprinted JSON text of this JSONArray. Warning: This method |
no test coverage detected