SUMMARY REST API for gist creation uses JSON for payload format, which supports array. Form doesn't so gist file field names(filename and content) follow {KNOWN_PREFIX}{index} semantics, which can be parsed while processing request.