exposeJSON method
Implementation
String exposeJSON(
JSONString jsonString, {
LogMethods? method = .prettyPrint,
}) {
JSONString j = jsonString;
switch (method) {
case .removeEmpty:
j = removeEmpty(jsonString);
case .prettyPrint:
j = prettyPrint(jsonString);
case .removeEmptyThenPrettyPrint:
j = prettyPrint(removeEmpty(jsonString));
case _:
}
print(j);
return j;
}