jsonHumanSize method
Gets human-readable size of this JSON string
decimals
Number of decimal places (defaults to 2)
Returns the human-readable size or null if string is invalid JSON
Example:
final size = '{"name":"John"}'.jsonHumanSize();
print(size); // "15 B" or similar
Implementation
String? jsonHumanSize({int decimals = 2}) {
return QJSONUtils.getHumanSize(this, decimals: decimals);
}