Created
September 23, 2015 21:10
-
-
Save ThomasAlexandre/479296531299b6a39a2c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import io.circe._, io.circe.generic.auto._, io.circe.jawn._, io.circe.syntax._ | |
case class WIFI(network:String,password:String) | |
val myWifi = WIFI("Scala","My_Wifi_Password") | |
myWifi.asJson | |
myWifi.asJson.noSpaces // will return a String "{"password":"My_Wifi_Password","network":"Scala"}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment