Java JSON Encode using Map

Pubblicato il: 03 aprile 2020
sul canale di: Professor Saad
3,394
20

#JSONJAVA #JSONJAVAENCODE #STAYSAFE #METOO
Java JSON Encode Map
JSON SIMPLE JAR FILE LINK:
http://www.java2s.com/Code/Jar/j/Down...

JSON CODE from this example:
************************************

import java.util.HashMap;
import java.util.Map;
import org.json.simple.JSONValue;
public class JSONExample2 {
public static void main(String[] args) {
Map obj = new HashMap();
obj.put("name", "Jensen");
obj.put("age",new Integer(27));
obj.put("salary",new Double(60000.90));
String jsonText = JSONValue.toJSONString(obj);
System.out.println(jsonText);
}
}

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

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

This tutorial is about Programming in .


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