Encodes numeric strings as numbers.

When Json string is given, numeric values are set as string.
I think it  will be better to have the value set as numbers, which enables compatibility with javascript frameworks like Angularjs using Json objects.