Subrequests JSON Merger
This module allow you to alter the format of the single response you get from
Subrequests. Instead of merging the sub-responses into a
HTTP response, using this module we can merge them into a JSON object.
This JSON object will be keyed by request ID (possible expanded because of
JSONPath queries). Each top-level value is an object itself. Such objects
headers and the
body of the response.
Inject the merger into subrequests when making a request.
const JsonReponse = ;subrequests;
Using the example in the Subrequests module you will get the following output: