public final class PrettyPrinter extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
toPrettyPrintedString(org.json.JSONObject jsonObject)
Pretty print a JSONObject as an indented piece of JSON code.
|
static String |
toPrettyPrintedString(Map<String,HeaderDefinition> multiHeaderDefinitionResult)
Pretty print a map of String to HeaderDefinition (see QuandlSession.getMultipleHeaderDefinition)
Throws a QuandlRuntimeException if it can't render the JSONObject to a String.
|
static String |
toPrettyPrintedString(MetaDataResult metaDataResult)
Pretty print a MetaDataResult as an indented piece of JSON code.
|
static String |
toPrettyPrintedString(SearchResult searchResult)
Pretty print a SearchResult as an indented piece of JSON code.
|
static String |
toPrettyPrintedString(TabularResult result)
Pretty print a TabularResult in a text-based table format.
|
public static String toPrettyPrintedString(SearchResult searchResult)
searchResult - the searchResult, not nullpublic static String toPrettyPrintedString(MetaDataResult metaDataResult)
metaDataResult - the metaDataResult, not nullpublic static String toPrettyPrintedString(org.json.JSONObject jsonObject)
jsonObject - the pre-parsed JSON object to pretty-print, not nullpublic static String toPrettyPrintedString(Map<String,HeaderDefinition> multiHeaderDefinitionResult)
multiHeaderDefinitionResult - the pre-parsed JSON object to pretty-print, not nullpublic static String toPrettyPrintedString(TabularResult result)
result - a TabularResult, not nullCopyright 2014-Present by Jim Moores
${javadoc.footer.license}