setMaxReadLength

public static void setMaxReadLength(int maxReadLength)

Overrides the default maximum JSON string length (20MB) for the JSON parser.

Warning: This modifies a global static setting. It will overrides the system property setting via MAX_READ_LENGTH_PROPERTY. This method is not thread-safe.

Parameters

maxReadLength

the new maximum string length in bytes (e.g., 100_000_000 for 100MB).