Play JSON for Scala.js

507 views
Skip to first unread message

workingdog

unread,
Jun 24, 2017, 10:01:03 AM6/24/17
to Scala.js
Is this really happening? Play 2.6.0 was released and mentioned Play JSON for Scala.js.

The library is published on maven central: 


I didn't see the Play JSON for Scala.js announcement, has anyone tried it?

The documentation on github has no mentioned of it and no clues on how to use it.


Justin du coeur

unread,
Jun 24, 2017, 3:59:19 PM6/24/17
to workingdog, Scala.js
Given that it claims to be from "com.typesafe.play", it sounds like it's an official artifact of the Typesafe/Lightbend folks, rather than coming out of the Scala.js community.  I'd recommend asking Lightbend directly, either in the playframework Gitter room or the Play mailing list...

--
You received this message because you are subscribed to the Google Groups "Scala.js" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-js+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scala-js/e478419c-7bac-4d9a-9b58-12130fec545c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

workingdog

unread,
Jul 1, 2017, 3:13:16 AM7/1/17
to Scala.js
I've now tried it and it's brilliant.
Real "normal" JSON, no extra $ signs or class type things.
fastOptJS instead of compile and that was it for my project.

Logan Nelson

unread,
Jul 21, 2017, 8:18:33 PM7/21/17
to Scala.js
@workingdog I'm also trying to setup this up in a project (play framework/scalajs). Could you share how you were able to integrate it into your project, or post a link to a resource? I also noticed that their docs don't mention how to use it in scalajs :(

workingdog

unread,
Jul 22, 2017, 2:45:32 AM7/22/17
to Scala.js
Hi Logan,

I am working on a library for scala and scala.js using Play JSON at:


Look at the build.scala file for how I setup my project for both scala and scala.js.

Also look at StixTest.html and ExampleJs.scala for a very simple test I did.

Basically I see no difference in using my library in scala or scala.js.

Hope it helps

workingdog

unread,
Jul 22, 2017, 2:56:01 AM7/22/17
to Scala.js
Note I'm using intellij for development, and what the github project structure does not show is that 
I have a js and a jvm directory with nothing in them.
All my code (for this project) is in the share directory.
Reply all
Reply to author
Forward
0 new messages