spray-json
spray-json copied to clipboard
Handle Array[Any]
Is there a way to handle Array[Any] or Seq[Any] or List[Any] ?
+1 for this issue
@pc-jedi , but you can also use asInstanceOf[JsArray] approach, for example this code:
val my_json = "[{\"kek\":1},{\"kek\":2}]"
println(my_json.parseJson.asInstanceOf[JsArray].elements.size)
will produce
2