Bug 1038399 - Add a ToJSON method to Web IDL dictionaries. r=bholley, a=lmandel