Open amnaredo opened 3 years ago
If you are wanting to read in Js.*
blobs in particular, upickle.json readJs
function should let you do that. or upickle.json.read
/upickle.json.readJs
.
Of course, if you want to parse it using upickle's default pickling, that's another matter. I haven't tested it, but I bet we could make it work
Original Author: lihaoyi
I should have been more clear. The input is a JSON string and I expect upickle.read[Js.Arr](json)
to return the full parse tree as-is, i.e. no pickling implicits should be applied. The above works, but I have to declare a case class and an implicit.
Original Author: tindzk
Yeah and upickle.json.read
does exactly that
Original Author: lihaoyi
The following fails with an expansion error:
I came up with a quick workaround, but I'd prefer if the above line worked:
ID: 56 Original Author: tindzk