there are streaming json parsers that can help there too. I ran into the very same problem with a little arduino esp32. You wont be able to parse the entire json response into memory ever, but what you can do is if you know the structure, use a streaming json parser, and have it pull out the data you care about when you need it.