Convierte matrices a JSON fácilmente
Project description
jrjson
Convierte matrices a JSON de forma simple, rápida y sin dependencias pesadas.
Características
- Convierte matrices a JSON
- Soporta encabezados automáticamente
- Salida formateada
- CLI incluida
- Ligero y fácil de usar
📦 Instalación
pip install jrjson
Uso en Python
from jrjson import convertir
matriz = [
["nombre", "edad"],
["Juan", 25],
["Ana", 30]
]
resultado = convertir(matriz, usar_header=True)
print(resultado)
🔥 Output
[
{
"nombre": "Juan",
"edad": 25
},
{
"nombre": "Ana",
"edad": 30
}
]
Ejemplo sin encabezados
from jrjson import convertir
matriz = [
["Juan", 25],
["Ana", 30]
]
print(convertir(matriz))
Output:
[
{
"0": "Juan",
"1": 25
},
{
"0": "Ana",
"1": 30
}
]
🚀 Roadmap (próximas features)
- Exportar a archivo (
--output) - Soporte para CSV
- Detección automática de tipos
- Mejor manejo de errores
👨💻 Autor
Creado por Junior Alejandro Barrera
📄 Licencia
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
jrjson-0.2.0.tar.gz
(2.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jrjson-0.2.0.tar.gz.
File metadata
- Download URL: jrjson-0.2.0.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
25405219b4dcb83e74de1578e1265051a1b19df1f413bdbde98cc02383ff25ad
|
|
| MD5 |
7011f982e7a2f1fe9aa73ddda911c490
|
|
| BLAKE2b-256 |
8de6b5bb0f8e4cf383282d29e142d9fe3f357ee474f7166a777375e6af0608a0
|
File details
Details for the file jrjson-0.2.0-py3-none-any.whl.
File metadata
- Download URL: jrjson-0.2.0-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f6c87047a55f15bcb2c3b63e7151282725586b2e0b025c1e2ab34050e9dad01c
|
|
| MD5 |
7f7aac369ce1f5ef705dc1dce72179d3
|
|
| BLAKE2b-256 |
32c2208222a2622e4f0ca5c6acfe81f46bc959acead6f3697aabf10f4e6ac56c
|