Class JSONLoader

java.lang.Object
kkchengaf.EnchantmentOrder.JSONLoader

public class JSONLoader extends Object
Utility to load json file
  • Constructor Details

    • JSONLoader

      public JSONLoader()
  • Method Details

    • from

      public static org.json.JSONObject from(Class classObj, String relativePath)
      load the json file from the package
      Parameters:
      classObj - the class that holds the resource
      relativePath - the path of file
      Returns:
      JSONObject, contains the content of the file