Fix JSON ruby example syntax error.

Correct typo in JSON example with incorrect ruby code.