public JSONResult getJSON(File file) {
    try {
      String json = new Scanner(file).useDelimiter("\\Z").next();
      return new JSONResult(json);
    }
    catch (Throwable e) {
      throw new FireRESTException(file.toString(), e);
    }
  }
public JSONResult getJSON(File file) {
    try {
      String json = new Scanner(file).useDelimiter("\\Z").next();
      return new JSONResult(json);
    }
    catch (Throwable e) {
      throw new FireRESTException(file.toString(), e);
    }
  }
public JSONResult getJSON ( File file ) { try { String json = new Scanner ( file ) . useDelimiter ( "\\Z" ) . next ( ) ; return new JSONResult ( json ) ; } catch ( Throwable e ) { throw new FireRESTException ( file . toString ( ) , e ) ; } }
Load json from given file resource.
This is a convenient equivalent to getJSON() with a file URL.

@return JSONResult
Load json from given file resource . This is a convenient equivalent to getJSON () with a file URL .