code: private Resource parseResource() throws IOException {
          //current token is ready consumed by parseResources
          if (jsonParser.getCurrentToken() != JsonToken.START_OBJECT) {
              throw new JsonParseException("Not a Resource object", jsonParser.getCurrentLocation());
          }
  
          Resource resource = new Resource();
  
          while (jsonParser.nextToken() != JsonToken.END_OBJECT) {
              String key = jsonParser.getCurrentName();
  
              switch (key) {
              default:
                  resource.add(key, parseDefaultValue(key));
                  break;
              }
          }
  
          return resource;
      }
docs: Parses a single Resource.
  
  @return a single resource
  @throws IOException