My problem is that the string is too large and I believe that the buffer is too small for the string incoming (It throws an InvalidInput from deserialJson: Is it possible to somehow parse/slice the incoming data quickly enough to avoid filling the buffer up?
Of course it is possible, but likely not easy if you're not an experienced programmer. It would require a parser that operates character-by-character, recognizing complete tokens, and implemented as a state machine so it is able to recurse to handle (possibly deeply) nested definitions. Not a project for a beginner.