Search in sources :

Example 1 with Toml

use of com.moandjiezana.toml.Toml in project Orchid by JavaEden.

the class TOMLParser method parse.

@Override
public JSONElement parse(String extension, String input) {
    Toml toml = new Toml().read(input);
    JSONObject object = new JSONObject(toml.toMap());
    return new JSONElement(object);
}
Also used : JSONObject(org.json.JSONObject) JSONElement(com.eden.common.json.JSONElement) Toml(com.moandjiezana.toml.Toml)

Aggregations

JSONElement (com.eden.common.json.JSONElement)1 Toml (com.moandjiezana.toml.Toml)1 JSONObject (org.json.JSONObject)1