I’ve used play-json ("com.typesafe.play" %% "play-json" % "2.3.0", 
http://www.playframework.com/documentation/2.2.x/ScalaJsonCombinators) and 
validation 
(https://github.com/jto/validation, 
http://jto.github.io/articles/play_new_validation_api/) 
without a problem. As a bonus, it’s very cool, configurable with type 
classes and modular rules, and uses no runtime reflection (unlike 
spray-json, json4s, and probably argonaut).

Nick

On Friday, July 11, 2014 4:39:37 AM UTC+1, JamesJ wrote:
>
> I am trying out Scala Json libs on Android.  
>
> My environment: Sbt 12.4, android-sdk-plugin 1.3.1, IDEA 13.1.3 (using sbt 
> import to setup), Scala 2.11.1, on Windows, testing on a Nexus 7.
>
> So far.  
>
> Json4s - I experienced issues SBT and dependencies, and gave up after a 
> bit to try others.
>
> Spray Json - easy to get working, but I think I am encountering proguard 
> config issues, and am not a pro at fixing.  It isn't always obvious to me 
> how to adapt Java example for use with Scala. (But would appreciate any 
> links to good resources for proguard for scala)
>
> Here is a small part of the long string of errors:
> I/FApp    (13319): '
> I/dalvikvm(13319): Could not find method scala.collection.Seq.$plus$colon, 
> referenced from methodorg.parboiled.scala.Pa 
> <http://org.parboiled.scala.pa/>
> rser$class.rule
> W/dalvikvm(13319): VFY: unable to resolve interface method 10781: 
> Lscala/collection/Seq;.$plus$colon (Ljava/lang/Object;
> Lscala/collection/generic/CanBuildFrom;)Ljava/lang/Object;
> D/dalvikvm(13319): VFY: replacing opcode 0x72 at 0x0010
> W/dalvikvm(13319): VFY: unable to find class referenced in signature 
> (Lscala/Symbol;)
> I/dalvikvm(13319): Could not find method scala.Symbol.name 
> <http://scala.symbol.name/>, referenced from method 
> org.parboiled.scala.Parser$class.toRu
> le
> W/dalvikvm(13319): VFY: unable to resolve virtual method 9986: 
> Lscala/Symbol;.name ()Ljava/lang/String;
> D/dalvikvm(13319): VFY: replacing opcode 0x6e at 0x0000
> W/dalvikvm(13319): VFY: unable to find class referenced in signature 
> (Lscala/Function4;)
> W/dalvikvm(13319): VFY: unable to find class referenced in signature 
> (Lscala/Function4;)
> W/dalvikvm(13319): VFY: unable to find class referenced in signature 
> (Lscala/Function5;)
>
> I like the potential of using Dynamic Json like Dijon 
> https://github.com/pathikrit/dijon, but it appears that Dijon will be 
> using Json4s soon.
>
> Any suggestions are welcomed.
>

-- 
You received this message because you are subscribed to the Google Groups 
"scala-on-android" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to