As previous answers are already stating, this is a bug in Lifetime/Platform server, fixed on OutSystems environments running Platform Server 11.10.0 or higher and LifeTime 11.6.1 (and higher).
Without fix, max length for JSON you can push through is around 550 chars, depending a bit on your application/environment names (as they seem to count towards the grand total).