All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.mbtest.javabank.ImposterParser Maven / Gradle / Ivy

There is a newer version: 0.4.10
Show newest version
package org.mbtest.javabank;

import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;
import org.json.simple.parser.ParseException;
import org.mbtest.javabank.http.imposters.Imposter;

public class ImposterParser {

    public static Imposter parse(String json) throws ParseException {
        JSONObject parsedJson = (JSONObject) new JSONParser().parse(json);

        return Imposter.fromJSON(parsedJson);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy