JSON.stringify spec has been updated to support numbers in addition to strings, and their boxed equivalents.
Created attachment 38697 [details] Patch v1
Created attachment 38699 [details] Patch v1
Comment on attachment 38699 [details] Patch v1 r=me
committed r47847