A Python library to convert PHP serialized data (from serialize()) or PHP session format to JSON. Supports nested arrays, objects, and various PHP types. Current version: 0.2. Low release cadence, last updated 2018.
pip install php2jsonNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Converts a PHP serialized string to JSON (Python dict/list).
Pre-process the input to strip class info or use a more robust library like phpserialize.
Ensure you pass a string directly.
Consider alternative libraries like phpserialize for active support.
Wrap calls in try/except and validate input.
No dependency data recorded yet.