Fix JSON, XML, or binary serialization/deserialization issues
Help me debug serialization/deserialization issues.
**Format:** {{FORMAT}}
**Language:** {{LANGUAGE}}
**Library:** {{LIBRARY}}
**Data class/structure:**
```{{LANGUAGE}}
{{DATA_CLASS}}
```
**Serialization code:**
```{{LANGUAGE}}
{{SERIALIZATION_CODE}}
```
**Input data:**
```
{{INPUT_DATA}}
```
**Error or incorrect result:**
```
{{ERROR}}
```
**Expected result:** {{EXPECTED}}
Please provide:
1. **Format Validation**: Validate input data format
2. **Schema Mismatch**: Check data class vs data mismatch
3. **Null Handling**: Check null/missing field handling
4. **Type Coercion**: Identify type conversion issues
5. **Fixed Code**: Corrected serialization code
6. **Annotation/Attributes**: Proper serialization annotations
7. **Edge Cases**: Handle special values and edge cases
8. **Versioning**: Handle schema versioningOr press ⌘C to copy
Replace these placeholders with your own content before using the prompt.
[{FORMAT][{LANGUAGE][{LIBRARY][{DATA_CLASS][{SERIALIZATION_CODE][{INPUT_DATA][{ERROR][{EXPECTED]