Skip to content
This repository has been archived by the owner on May 21, 2018. It is now read-only.

document how to parse a case class with rapture-json 2 #278

Open
tyrcho opened this issue Feb 19, 2018 · 0 comments
Open

document how to parse a case class with rapture-json 2 #278

tyrcho opened this issue Feb 19, 2018 · 0 comments

Comments

@tyrcho
Copy link

tyrcho commented Feb 19, 2018

I've tried to migrate my sample to rapture 2.0 M9 but I cannot find the correct way to do it, here is a minimalist sample: https://github.com/tyrcho/rapture-json-demo/blob/rapture_2/src/main/scala/Demo.scala

this code worked with rapture 1.1 (my master branch)

Json.parse(string).as[Person]

but fails with rapture 2 (branch rapture_2):

Error:(16, 32) not enough arguments for method as: (implicit ext: rapture.data.Extractor[Demo.Person,rapture.json.Json], implicit mode: rapture.core.Mode[rapture.data.Data#as])mode.Wrap[Demo.Person,ext.Throws].
Unspecified value parameters ext, mode.
  val p = Json.parse(string).as[Person]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant