|
|
|
|
|
by pyrale
3247 days ago
|
|
Do you have examples of things that don't fit the vanilla FromJSON ?
From the top of my head, there's lensed things (which can easily be done once with a LensJSON typeclass), and things which use a different serialization (e.g. no "tag" field, etc) for which there is little you can do, if each of your data types has its own standard. If they do, though, you could easily define a typeclass for each source (e.g. StackoverflowJSON, HackernewsJSON, etc). |
|
If you need to manually handle tags, here's a snippet that can help you: