{"id":24339,"library":"pyion2json","title":"pyion2json","description":"Convert Amazon Ion documents to JSON. Version 0.0.2 is the latest, released March 2020. Low activity, likely stable but not actively maintained.","status":"maintenance","version":"0.0.2","language":"python","source_language":"en","source_url":"https://github.com/crouchcd/pyion2json","tags":["ion","json","conversion","amazon"],"install":[{"cmd":"pip install pyion2json","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"Required for parsing Ion data internally.","package":"amazon.ion","optional":false}],"imports":[{"note":"Main conversion function for single Ion value.","symbol":"ion_to_json","correct":"from pyion2json import ion_to_json"},{"note":"Convert an Ion cursor/iterable to JSON.","symbol":"ion_cursor_to_json","correct":"from pyion2json import ion_cursor_to_json"}],"quickstart":{"code":"from pyion2json import ion_to_json\nimport amazon.ion.simpleion as ion\n\nion_data = b'{name: \"Alice\", age: 30}'\nion_val = ion.loads(ion_data)\njson_str = ion_to_json(ion_val)\nprint(json_str)","lang":"python","description":"Loads an Ion value and converts to JSON string."},"warnings":[{"fix":"Ensure amazon.ion is the version compatible with this library.","message":"The library uses amazon.ion internally; if you have a different Ion parser installed, conflicts may occur.","severity":"gotcha","affected_versions":"all"},{"fix":"Create an IonCursor from your iterable using amazon.ion's cursor API.","message":"ion_cursor_to_json expects an IonCursor object, not a raw iterable. Passing a list of Ion values will fail.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"pip install amazon.ion","cause":"The dependency amazon.ion is not installed.","error":"ModuleNotFoundError: No module named 'amazon'"},{"fix":"Use: from pyion2json import ion_to_json","cause":"Incorrect import or old version installed.","error":"AttributeError: module 'pyion2json' has no attribute 'ion_to_json'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}