JSON serialization test