Java JSON Decode

Publicado el: 08 abril 2020
en el canal de: Professor Saad
1,887
18

#JavaJSONDecode #JSONDecode #JavaJSON

Java JSON Decode

Like, Share, And Subscribe | Professor Saad Yousuf
Watch Our All Videos On This :    / professorsaad  
Subscribe Our Channel :    / professorsaad  
Playlists:    / ssby79  

******************CODE*******************
import org.json.simple.JSONObject;
import org.json.simple.JSONValue;
public class JsonDecodeExample1 {
public static void main(String[] args) {
String s="{\"name\":\"sonoo\",\"salary\":600000.0,\"age\":27}";
Object obj=JSONValue.parse(s);
JSONObject jsonObject = (JSONObject) obj;

String name = (String) jsonObject.get("name");
double salary = (Double) jsonObject.get("salary");
long age = (Long) jsonObject.get("age");
System.out.println(name+" "+salary+" "+age);
}
}

**********************************************


En esta página del sitio puede ver el video en línea Java JSON Decode de Duración hora minuto segunda en buena calidad , que subió el usuario Professor Saad 08 abril 2020, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 1,887 veces y le gustó 18 a los espectadores. Disfruta viendo!