The json method on context object should support more types than Record<string, any>. Anything that results in a valid JSON.stringify should be supported.
msw: 0.20.5nodejs: 12.16.1npm: 6.13.4Please also provide your browser version. (N/A)
Steps to reproduce the behavior:
rest request handler.context.json method.I would expect no type error to occur when passing anything that would result in a valid JSON.stringify call.

Hey, @wyze! Thank you for suggesting this.
This makes perfect sense, any valid JSON should be accepted as an argument to ctx.json(). Please, would you be interested in issuing a pull request to extend this support? I'd gladly assist on code review and any questions you may have. Let me know.
Please, would you be interested in issuing a pull request to extend this support?
Definitely! I will work it up now.
Most helpful comment
Definitely! I will work it up now.