Package com.granule.json

Examples of com.granule.json.JSONArtifact


     * @return An instance of the JSONArtifact that best represents the data in this JavaBean
     * @throws IllegalArgumentException Thrown if input type is a String, Number, Boolean, etc.
     * @throws com.granule.json.JSONException Thrown if a JSON conversion error occurs.
     */
    public static JSONArtifact toJson(Object obj, boolean includeSuperclass) throws IllegalArgumentException, JSONException {
        JSONArtifact ja = null;

        if (obj != null) {
            Class clazz = obj.getClass();
            if (String.class  == clazz) {
                throw new IllegalArgumentException("Class was String type, not a Javabean.");
View Full Code Here

TOP

Related Classes of com.granule.json.JSONArtifact

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.