code: public static Map<String, Object> curryDelegateAndGetContent(Closure<?> c, Object o) {
          JsonDelegate delegate = new JsonDelegate();
          Closure<?> curried = c.curry(o);
          curried.setDelegate(delegate);
          curried.setResolveStrategy(Closure.DELEGATE_FIRST);
          curried.call();
  
          return delegate.getContent();
      }
docs: Factory method for creating <code>JsonDelegate</code>s from closures currying an object
  argument.
  
  @param c closure representing JSON objects
  @param o an object curried to the closure
  @return an instance of <code>JsonDelegate</code>