What is the max length of JSON input parameter in the Stored Procedure

Will update that I managed to fix the issue and avoid the use of the long data command by increasing maxAllowedPacket to 1GB.
I did so by adding the parameter maxAllowedPacket=1000000000 to the connection dsn-

hostDml := os.Getenv(hostDataEnvVar)
// maxAllowedPacket is set to ~1GB
connectionWithDbDml := userName + “:” + password + “@tcp(” + hostDml + “:” + PORT + “)/” + DATABASE + “?parseTime=true&maxAllowedPacket=1000000000”
gormDB, err = gorm.Open(mysql.Open(connectionWithDbDml),
&gorm.Config{
PrepareStmt: false,
Logger: logger.Default.LogMode(logger.Info), // Optional: Add GORM logger for detailed logs
})