Emit "end" with a JSON object

JSON object includes the original fileInfo plus a reference to the context's request and response objects.