Made JSON example code match description

In the JSON example, the ‘reviver’ function hard-coded the year, month, and day rather than using the parsed value, making for confusing code that didn't seem to match the description or intent.  (It also changed the year and swapped the month and day, adding to confusion.)

I've updated it to use the parsed value, which I assume is what it was meant to do.