estimateJsonSize static method
Estimates the size of a JSON string in bytes.
This is useful for estimating the size of serialized objects.
Implementation
static int estimateJsonSize(String jsonString) {
return jsonString.length * 2; // UTF-16 encoding
}