I search a Python library which supports a JSON-like format which supports binary data.
Required features:
- Nested data structures like JSON
- Support for binary data (without additional base64 encoding/decoding of binary parts)
- Open source library (not GPL) for reading and writing for Python and Java
- If no binary data is transferred the format on the wire should be valid JSON.