Skip to main content

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


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.1.0.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jrjson-0.1.0-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file jrjson-0.1.0.tar.gz.

File metadata

  • Download URL: jrjson-0.1.0.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.4

File hashes

Hashes for jrjson-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8ddad7b8dd3192cdd82406c67db1531709fa5763cfa5875520fc72af3791a2bf
MD5 07c70288c0f1cf1066162b63227a57f4
BLAKE2b-256 6c8ada5ab60e9c2043ee4ecb8df9079160da4257902bf116d31219a8b4f2396c

See more details on using hashes here.

File details

Details for the file jrjson-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: jrjson-0.1.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

Hashes for jrjson-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 623b5e6a48da34f5e3e5c5b2ac09f4eeef761c6a15289f4bca3fa7721d7f8db8
MD5 792113e5ad93145c6957720368288442
BLAKE2b-256 424f52c2ed3bd46a06147538678f2cc6fe1e675eef4a3cad18fd510334fb489a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page