--- id: json2onnx version: "2.0.3" license: MIT License license_treatment: permissive maintenance: dormant --- # json2onnx — Converts a JSON file to an ONNX file. License: permissive · Maintenance: dormant · Downloads: 82.9K/mo ## What it is and what it does json2onnx is a lightweight utility that transforms JSON representations into ONNX model files. It provides both a command-line interface and a Python API, accepting input as either a JSON file path or a dictionary, and returning an ONNX ModelProto object that can be saved to disk or used programmatically. The package is designed for developers working with ONNX models who need to serialize or reconstruct models from JSON format. It has no runtime dependencies, making it straightforward to integrate. However, the project has been dormant for over a year, so users should verify compatibility with their current ONNX and Python versions before relying on it for production workflows. Use it for: - Reconstruct ONNX models from JSON representations stored in databases or configuration files. - Convert JSON-based model definitions into standard ONNX format for inference engines. - Programmatically generate ONNX models by building JSON dictionaries and converting them. - Integrate JSON model specifications into automated machine learning pipelines. - Export model metadata or architecture from JSON to ONNX for compatibility with ONNX tooling. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Converts JSON files to ONNX model format, accepting either a JSON file path or a dictionary and returning an ONNX ModelProto object. Yes, if you need JSON-to-ONNX conversion and can verify compatibility with your ONNX version. The package has low install friction, no runtime dependencies, and a permissive MIT License. However, dormant maintenance (last update 1077 days ago) means you should test thoroughly before production use and be prepared to fork or find alternatives if issues arise. ## Install pip install json2onnx uv add json2onnx poetry add json2onnx ## Installing json2onnx Before you install: Low install friction with no runtime dependencies. Maintenance is dormant—last release was 1077 days ago and the repository shows no recent activity, though it remains unarchived. License in practice: MIT License permits free use, modification, and distribution with minimal restrictions, making it suitable for both open and closed-source projects. Quickstart: pip install json2onnx from json2onnx import convert onnx_graph = convert( input_json_path="model.json", output_onnx_file_path="model.onnx" ) Verify before relying: - What JSON schema or structure is expected as input—whether it must conform to a specific ONNX JSON representation or a custom format. - Whether the package handles complex ONNX graphs or is limited to simpler model structures. - Current compatibility with recent ONNX versions, given the dormant maintenance status. ## Package facts - License: MIT License (permissive) - Python support: supports_current - Install friction: low - Maintenance: dormant - Downloads: 82.9K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags json to onnx conversion, convert json onnx, json onnx serialization, onnx model from json, onnx graph generation, model format conversion, json neural network, model-serialization, onnx-tools [View on SkillFed](https://skillfed.io/packages/json2onnx) · [View on PyPI](https://pypi.org/project/json2onnx/)