Add the JSON example to tests.