Serialization fixes for JSON request payload