Java JSON Decode

Pubblicato il: 08 aprile 2020
sul canale di: 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);
}
}

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


In questa pagina del sito puoi guardare il video online Java JSON Decode della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Professor Saad 08 aprile 2020, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 1,887 volte e gli è piaciuto 18 spettatori. Buona visione!