"Parse API-produced JSON as a contract" is exactly the kind of programming problem pure functional languages were supposed to solve.
And we're building horrific and error-prone rube-goldberg machines to bolt onto our functional programming languages instead.
You literally make no sense to me. Are you sure we are talking about the same thing?
I mean sure: writing JSON parsers takes time, but once written they are awesome.
The promise of pure functional programming was to never write a 'JSON parser' by hand ever again. (Among other things.)
The paradigm failed because people in charge of Haskell and Elm and other similar languages failed at their job.