object KSON
- Companion:
- class
- Source:
- KSON.scala
Type members
Classlikes
Inherited types
The names of the product elements
The names of the product elements
- Inherited from:
- Mirror
- Source:
- Mirror.scala
Implicits
Implicits
Right.apply[Nothing,Int](i)
caseKLong(l)iflongWrapper(l).isValidInt=>
Right.apply[Nothing,Int](l.toInt)
caseKDouble(l)ifdoubleWrapper(`l₂`).isValidInt=>
Right.apply[Nothing,Int](`l₂`.toInt)
case_=>
Left.apply[String,Nothing]("Notavalidinteger!")
}
overridedeflong(`t₃`:KSON):Either[String,Long]=`t₃`match{
caseKLong(l)=>
Right.apply[Nothing,Long](`l₃`)
caseKInt(i)=>
Right.apply[Nothing,Long](`i₂`.toLong)
caseKDouble(l)ifdoubleWrapper(`l₄`).isWhole=>
Right.apply[Nothing,Long](`l₄`.toLong)
case_=>
Left.apply[String,Nothing]("Notavalidlong!")
}
overridedefdouble(`t₄`:KSON):Either[String,Double]=`t₄`match{
caseKDouble(l)=>
Right.apply[Nothing,Double](`l₅`)
caseKLong(l)=>
Right.apply[Nothing,Double](`l₆`.toDouble)
caseKInt(i)=>
Right.apply[Nothing,Double](`i₃`.toDouble)
case_=>
Left.apply[String,Nothing]("Notavaliddouble!")
}
overridedefbool(`t₅`:KSON):Either[String,Boolean]=`t₅`match{
caseKBool(b)=>
Right.apply[Nothing,Boolean](b)
case_=>
Left.apply[String,Nothing]("Notabooleanvalue!")
}
overridedefarray(`t₆`:KSON):Either[String,Iterable[KSON]]=`t₆`match{
caseKArr(vs)=>
Right.apply[Nothing,Iterable[KSON]](vs)
case_=>
Left.apply[String,Nothing]("Notanarray!")
}
overridedefobj(`t₇`:KSON):Either[String,Iterable[Tuple2[String,KSON]]]=`t₇`match{
caseKObj(fs)=>
Right.apply[Nothing,Iterable[Tuple2[String,KSON]]](fs)
case_=>
Left.apply[String,Nothing]("Notanobject!")
}
}
(new$anon():Reader[KSON])
}" class="documentableAnchor">
implicit val
Right.apply[Nothing,Int](i)
caseKLong(l)iflongWrapper(l).isValidInt=>
Right.apply[Nothing,Int](l.toInt)
caseKDouble(l)ifdoubleWrapper(`l₂`).isValidInt=>
Right.apply[Nothing,Int](`l₂`.toInt)
case_=>
Left.apply[String,Nothing]("Notavalidinteger!")
}
overridedeflong(`t₃`:KSON):Either[String,Long]=`t₃`match{
caseKLong(l)=>
Right.apply[Nothing,Long](`l₃`)
caseKInt(i)=>
Right.apply[Nothing,Long](`i₂`.toLong)
caseKDouble(l)ifdoubleWrapper(`l₄`).isWhole=>
Right.apply[Nothing,Long](`l₄`.toLong)
case_=>
Left.apply[String,Nothing]("Notavalidlong!")
}
overridedefdouble(`t₄`:KSON):Either[String,Double]=`t₄`match{
caseKDouble(l)=>
Right.apply[Nothing,Double](`l₅`)
caseKLong(l)=>
Right.apply[Nothing,Double](`l₆`.toDouble)
caseKInt(i)=>
Right.apply[Nothing,Double](`i₃`.toDouble)
case_=>
Left.apply[String,Nothing]("Notavaliddouble!")
}
overridedefbool(`t₅`:KSON):Either[String,Boolean]=`t₅`match{
caseKBool(b)=>
Right.apply[Nothing,Boolean](b)
case_=>
Left.apply[String,Nothing]("Notabooleanvalue!")
}
overridedefarray(`t₆`:KSON):Either[String,Iterable[KSON]]=`t₆`match{
caseKArr(vs)=>
Right.apply[Nothing,Iterable[KSON]](vs)
case_=>
Left.apply[String,Nothing]("Notanarray!")
}
overridedefobj(`t₇`:KSON):Either[String,Iterable[Tuple2[String,KSON]]]=`t₇`match{
caseKObj(fs)=>
Right.apply[Nothing,Iterable[Tuple2[String,KSON]]](fs)
case_=>
Left.apply[String,Nothing]("Notanobject!")
}
}
(new$anon():Reader[KSON])
}" class="documentableName ">readerInstance: Reader[KSON]
- Source:
- KSON.scala