How to parse something json-like with unquoted keys with aeson?

392 Views Asked by At

I am trying to use req library to crawl a page. The response for the page, is almost a JSON object, except for the keys being unquoted.

Is it possible to use Aeson to do relaxed parsing of it?

What could be the simplest hack that I can do with req to do that.

I tried to do regex replace in bytestring to introduce quotes, but it gets enormously complicated soon.

0

There are 0 best solutions below