title: Deserializing Json array into Scala object
body: <p>I have been having major problems trying to deserialize a JSON array to a Scala object</p>
  
  <pre><code>      [{"name":"Cool","city":"College Park","address":"806","id":1},{"name":"Mars ","city":"Durham","address":"12","id":2},{"name":"Something","city":"Raleigh 
  ","address":"","id":3},{"name":"test","city":"","address":"","id":5}]
  </code></pre>
  
  <p>I have tried gson, jerkson(jackson scala wrapper), sjson, flexjson.  None of them have worked.  What I have here is a List of Customers.  List[Customer].</p>
  
  <p>This is the closest I've got:</p>
  
  <pre><code>val array = new JsonParser().parse( customers ).getAsJsonArray()
  </code></pre>
  
  <p>This gave me an 4 arrays.  It obviously didn't give me a customer object though.  I tried Jerkson.</p>
  
  <pre><code>val array = parse[List[Customer]](customers)
  </code></pre>
  
  <p>But I get this.</p>
  
  <pre><code>GenericSignatureFormatError occured : null
  </code></pre>
  
  <p>I'm just trying to find a simple way like I would in Java.</p>
  
  <p>Here is my Scala class.</p>
  
  <pre><code>    case class Customer(
      id : Pk[ Int ],
      name : String,
      address : Option[ String ],
      city : Option[ String ],
      state : Option[ String ],
      user_id : Int )
  
      object Customer extends Magic[ Customer ]( Option( "Customer" ) ) { 
  
      def apply( name : String, address : String, city : String, state : String, user_id : Int ) = {
          new Customer( NotAssigned, name, Some( address ), Some( city ), Some( state ), user_id )
      }
  
      def delete( id : Int ) = {
          SQL( "DELETE from Customer where id = {id}" ).onParams( id ).executeUpdate()
      }
  
  }
  </code></pre>
  
  <p>Thanks for any help.</p>