Fix JSON serialization for service creation