code: public Object expand(Object input) {
          if (input instanceof List) {
              expandList((List<Object>) input);
              return input;
          } else if (input instanceof Map) {
              expandMap((Map<String, Object>) input);
              return input;
          } else if (input instanceof String) {
              return getJson((String) input);
          } else {
              return input;
          }
      }
docs: Expands a JSON object into a java object
  
  @param input the object to be expanded
  @return the expanded object containing java types like {@link Map} and {@link List}