[Fixes #1216] Provide a property on JsonOutputFormatter to set serialize...

...r settings

@harshgMSFT 
Json formatter in this test writes the response to a memory stream and I would need to rewind the stream in order to get the whole content for me to enable comparing the content in the next line of this test.