title: How to parse a json string to a case class in scaja.js and vice versa
body: <p>A JSON string:</p>
  
  <pre><code>{
      "name": "Mike",
      "age": 111
  }
  </code></pre>
  
  <p>A case class:</p>
  
  <pre><code>case class User(name:String, age:Int)
  </code></pre>
  
  <p>If I use scala, there are many libraries can let me convert the JSON to the case class and vice versa, but they can't be used in scala.js.</p>
  
  <p>How to do this work in scala.js?</p>