This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Instantiates a java object of the given class and applies the values from the given JSONObject. | |
* | |
* @param <E> The type to create | |
* @param json The JSONObject to convert | |
* @param objectClass Class of the type to create | |
* @return An instance of the specified class | |
*/ | |
public static <E> E objectFromJSON( JSONObject json, Class<E> objectClass ) { | |
try { |
NewerOlder