title: JsonProperty annotation does not work for Json parsing in Scala (Jackson/Jerkson)
body: <p>I need to parse the following json string:</p>
  
  <blockquote>
    <p>{"type": 1}</p>
  </blockquote>
  
  <p>The case class I am using looks like:</p>
  
  <pre><code>case class MyJsonObj(
      val type: Int
  )
  </code></pre>
  
  <p>However, this confuses Scala since 'type' is a keyword. So, I tried using @JsonProperty annotation from Jacson/Jerkson as follows:</p>
  
  <pre><code>case class MyJsonObj(
      @JsonProperty("type") val myType: Int
  )
  </code></pre>
  
  <p>However, the Json parser still refuses to look for 'type' string in json instead of 'myType'. Following sample code illustrates the problem:</p>
  
  <pre><code>import com.codahale.jerkson.Json._
  import org.codehaus.jackson.annotate._
  
  case class MyJsonObj(
      @JsonProperty("type") val myType: Int
  )
  
  object SimpleExample {
    def main(args: Array[String]) {
      val jsonLine = """{"type":1}"""
      val JsonObj = parse[MyJsonObj](jsonLine)
  }
  </code></pre>
  
  <p>I get the following error:</p>
  
  <pre><code>[error] (run-main-a) com.codahale.jerkson.ParsingException: Invalid JSON. Needed [myType], but found [type].
  </code></pre>
  
  <p>P.S: As seen above, I am using jerkson/jackson, but wouldn't mind switching to some other json parsing library if that makes life easier.</p>