我正在使用spray JSON将自定义对象的列表编组到JSON中。我有以下的case类和它的JsonProtocol。case class ElementResponse(name: String, symbol: String, code: String, pkwiu: String, remarks: Stringfind implicit value for evidence parameter of type spray.httpx.marshalling.Marshaller[
我在Scala中看到了一些奇怪的(非)拳击行为,我无法解释。val x: SomeCaseClass = // Case class populated from JSON in some code I do not control
java.lang.ClassCastException java.lang.Integer cannot be cast to java.lang.Long
at scala.runtime.BoxesRu