code: public static Map<String, Val> loads(@NonNull Resource resource) throws IOException {
        return loads(resource.readToString());
     }
docs: Reads the resource in the format to a map.
  
  @param resource the resource
  @return the data in the resource as a map
  @throws IOException something went wrong reading the resource