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

com.my.json.parse.JsonParse Maven / Gradle / Ivy

The newest version!
package com.my.json.parse;

import java.util.Optional;

import org.json.JSONObject;

public class JsonParse {

	public static Optional getJsonObject(Optional jsonString) {

		try {
			return jsonString.map(jsonStringValue -> new JSONObject(jsonString.get()));

		} catch (Exception excep) {
			excep.printStackTrace();
		}
		return Optional.empty();

	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy