Add JSON support and client.