Alright, I've got an easy one!
I'm just starting to play around with lift-json and I'm having some
trouble with a relatively easy case. I'm just trying to change a case
class into a JSON value and then parse that back into a case class.
Here's my code:
import net.liftweb.json._
import JsonAST._
import JsonDSL._
import JsonParser._
import Extraction._
implicit val formats = DefaultFormats
case class LastTimestamp(val localTime: Long, val globalTime: Long)
val timestamps = LastTimestamp(new java.util.Date().getTime, new
java.util.Date().getTime)
val json = compact(render(decompose(timestamps)))
parse(json).extract[LastTimestamp] == timestamps
This code throws an error:
com.thoughtworks.paranamer.ParameterNamesNotFoundException: Unable to
get class bytes
at
com.thoughtworks.paranamer.BytecodeReadingParanamer.lookupParameterNames(BytecodeReadingParanamer.java:97)
at
com.thoughtworks.paranamer.CachingParanamer.lookupParameterNames(CachingParanamer.java:72)
at
com.thoughtworks.paranamer.CachingParanamer.lookupParameterNames(CachingParanamer.java:64)
...
I'm using 2.0-SNAPSHOT.
Thanks in advance for setting me straight!
- Aaron
--
You received this message because you are subscribed to the Google Groups
"Lift" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/liftweb?hl=en.