Channing,

We don't use the Scala JSON parsing stuff because it does not do well with
very long JSON expressions (stack overflow problems).

The parsing defects (which I've fixed and added tests for) are a result of
some strong typing that Scala *should* be enforcing and is not (the compiler
was not rejecting certain patterns which should never have been allowed.)

Give it an hour and give it a try.

Thanks for hanging with me through these defects.

David

On Sun, Aug 2, 2009 at 7:48 AM, Channing Walton <channingwal...@mac.com>wrote:

>
> On Aug 1, 8:50 pm, Channing Walton <channingwal...@mac.com> wrote:
> > But I get a "Can't find variable: JSON" error.
>
> forget that, I was having some kind of safari issue.
>
> But the problem I am having now is a NumberFormatException:
>
> 2009-08-02 15:42:58,098 WARN  lift:246 - Request for /ajax_request/
> F782434648742DNZ/ failed For input string: "51.(.~List(3, 2, 5, 6, 1,
> 2, 3))"
> java.lang.NumberFormatException: For input string: "51.(.~List(3, 2,
> 5, 6, 1, 2, 3))"
>        at
> sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:
> 1224)
>        at java.lang.Double.parseDouble(Double.java:510)
>        at scala.runtime.RichString.toDouble(RichString.scala:216)
>        at net.liftweb.util.JSONParser$$anonfun$intFrac$2.apply(JSON.scala:
> 89)
>        at net.liftweb.util.JSONParser$$anonfun$intFrac$2.apply(JSON.scala:
> 89)
>
> The string its parsing is: {"command":"setPoint","params":{"mf":
> 51.3256123,"$a":-0.6379592,"x":-0.6379592,"y":51.3256123}}
>
> The scala json parser seems ok with it though.
>
>
> >
>


-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to