Oorian includes built-in support for JSON and XML parsing, generation, and manipulation—no external libraries needed.
JSON Parsing
String jsonString = "{\"name\": \"John\", \"age\": 30}";
JsonObject json = JsonParser.parse(jsonString);
String name = json.getString("name");
int age = json.getInt("age");
JSON Building
JsonObject json = new JsonObject();
json.put("name", "John");
json.put("age", 30);
json.put("active", true);
String output = json.toString(); // Formatted JSON
XML Support
XmlDocument doc = XmlParser.parse(xmlString);
XmlElement root = doc.getRootElement();
List<XmlElement> items = root.getChildren("item");
Conclusion
Oorian's built-in JSON and XML support handles common data format needs without adding external dependencies.