Thursday, December 05, 2013

Creating JSON data in Java


Download JAR file json-rpc-1.0.jar (75 kb)
import org.json.JSONObject;

JSONObject json = new JSONObject();
json.put("city", "Mumbai");
json.put("country", "India");

String output = json.toString();

No comments:

Post a Comment

🧠 10 Powerful ChatGPT Use Cases to Supercharge Your Business in 2025

  🧠 10 Powerful ChatGPT Use Cases to Supercharge Your Business in 2025 In today’s fast-paced digital world, businesses are racing to adopt ...