scala-json unserialize in scala.js
<p>I'm trying to convert JSON from Ajax request to Case class in Scala.js using scala-json <a href="https://github.com/MediaMath/scala-json" rel="nofollow">https://github.com/MediaMath/scala-json</a></p>

<p>Here is my classes:</p>

<pre><code>sealed trait Result
sealed trait Error extends Result
sealed trait Msg extends Result
case class MsgData(msg: Seq[String], args: Seq[Int]) extends Msg

case class CommentError(@name("obj.comment") comment: Seq[MsgData]) extends Error
</code></pre>

<p>Here is how I'm trying to convert:</p>

<pre><code>import json._
implicit val msgDataAcc = ObjectAccessor.create[MsgData]
implicit val commentErrorAcc = ObjectAccessor.create[CommentError]

println("here2")
val errors = JValue.fromString(req.responseText).toObject[CommentError]
println("here3")
</code></pre>

<p>This code just silently dies on string with conversion and "here3" never printed to console.</p>

<p>Here is my JSON from server:</p>

<blockquote>
  <p>{"obj.comment":[{"msg":["error.minLength"],"args":[10]}],"obj.name":[{"msg":["error.path.missing"],"args":[]}]}</p>
</blockquote>

<p>What I'm doing wrong? How to fix this?</p>