Type Params | Return Type | Name and description |
---|---|---|
|
static boolean |
isValidJson(java.lang.String value) |
|
JSON |
parseTrimmedText(java.lang.String text) |
|
static boolean |
seemsToBeJson(java.lang.String content) |
|
static boolean |
seemsToBeJsonContentType(java.lang.String contentType) This method and its name are somewhat awkward, but both stem from the fact that there are so many commonly used content types for JSON. |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
This method and its name are somewhat awkward, but both stem from the fact that there are so many commonly used content types for JSON.
contentType
- the MIME type to examinetrue
if content type is non-null and contains either "json" or "javascript"