SHARE
TWEET

Untitled

a guest Jun 18th, 2019 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. val list = List("""{"name":"abc","salary":"2000","id":"1","timeStamp" : "1528725600000"}""")
  2.      
  3. "com.typesafe.play" %% "play-json" % "2.6.9"
  4.      
  5. list.map(x => Json.parse(x).as[Map[String,String]])
  6.   .sortBy(y => y.getOrElse("timeStamp","0").toLong)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top