circe / circe

Yet another JSON library for Scala
https://circe.github.io/circe/
Apache License 2.0
2.49k stars 538 forks source link

IDEA - extend circe-literal to be able to generate extractors too #1058

Open kevinwright opened 5 years ago

kevinwright commented 5 years ago

Building a lightweight service call with literal JSON is an absolute breeze, but to process results we still have to use cursors or to derive extractors from case classes (or equivalent)

A technique to specify a json template that could match a fragment and extract a number of values would be insanely useful.

travisbrown commented 5 years ago

:+1:, agreed.

kevinwright commented 5 years ago

That response was much too fast... almost as though you were already working on it :)

travisbrown commented 5 years ago

For the record, I'm not actively working on this, but would really like to see it happen.

kevinwright commented 5 years ago

I started looking into a crossover between what circe-literal does and propensive/contextual. Alas, time is such a precious resource...