Use JSON-based serialization