Testing JSON serialization.