I want to unpickle a json like:
"values" :[["a1","b1","c1"],["a2","b2","c2"], ...]
Thus I have a list of lists where each inner list is fixed length of 3.
Using upickle to unpickle a list of (3) Strings to a tuple works nice:
read[(String,String,String)]("""["a1","b1","c1"]""") ==>("a1","b1","c1")
But how would I write the same to get it into a case class?
I thought I would write something similar to:
case class Values(values:Seq[Value])
case class Value( (a:String,b:String,c:String) )
But I have to name the Value tuple something, which is fine, but then the unpickler assumes
that name in the json tag, I think, and I get a decode error.
Any tips on how I should craft case classes (or custom unpicklers?), to match the json, 'values', above?
// Björn