Use JSON for interprocess communication in tests.