Saltar al contenido
uencoder

Convertir Java .properties files to JSON

Java .propiedades archivos usar key=value pairs con dot-notation para nesting. Convertir a JSON para usar en JavaScript environments y structured access.

  1. 1

    Java .properties files use KEY=VALUE or KEY:VALUE pairs, with dot-notation for hierarchical keys (e.g., app.database.host=localhost). Comments start with # or !. They are common in Java applications for configuration and internationalization (i18n) messages.

  2. 2
    Convertidor TOML →

    Analizar the .properties file and convert to JSON. Dot-notation keys are expanded into nested objects: app.database.host becomes {app: {database: {host: ...}}}. This makes the structure explicit and navigable.

  3. 3
    Formateador JSON →

    Formatear the converted JSON. Verify that dot-notation keys were correctly nested. Properties files often use inconsistent key naming — formatting normalizes the output and makes structural issues visible.

  4. 4

    For i18n message bundles, the conversion produces a JSON object that JavaScript i18n libraries (i18next, FormatJS) can consume directly. Map Java message format ({0}, {1}) to ICU MessageFormat ({name}, {count, plural, ...}) during conversion if needed.

Preguntas frecuentes

How are special characters handled in .properties?
Backslash escapes: \n (newline), \t (tab), \= (literal =), \: (literal :), \\ (literal backslash). Unicode: \uXXXX. The conversion tool should handle these escapes and produce the correct characters in JSON.
Can I convert JSON back to .properties?
Yes, but only for flat or shallowly nested JSON. Deep nesting and arrays do not map cleanly to .properties dot-notation. If you need round-trip conversion, keep the JSON flat or use a format that supports nesting natively (YAML, TOML).

Flujos que resuelven esta tarea

Comparar dos configuraciones YAML vía JSON
Convertir configuraciones YAML a JSON para comparación de valores estructurados apta para diff.
CANALIZACIÓN
Codificar un payload JSON para transporte por URL
Preparar un documento JSON para un parámetro URL: embellecer, codificar en Base64, luego codificar por ciento — el inverso exacto de la cadena de decodificación de parámetros anidados.
CANALIZACIÓN
HJSON a formato JSON
Formatear HJSON y convertir a JSON estándar.
CANALIZACIÓN
Formatear JSON y calcular suma de verificación de integridad
Embellecer un documento JSON y calcular una suma CRC32 para detectar modificaciones posteriores.
CANALIZACIÓN
Minificar y validar JSON
Formatear JSON para inspección y validar que sea sintácticamente correcto en una pasada.
CANALIZACIÓN
Formatear JSON y generar interfaz TypeScript
Formatear un documento JSON y luego inferir una definición de interfaz TypeScript en una cadena.
CANALIZACIÓN
Validar, formatear, luego convertir JSON a YAML
Convertir una configuración JSON (posiblemente minificada) a YAML, capturando errores de sintaxis en el primer nodo en lugar de producir YAML sutilmente incorrecto.
CANALIZACIÓN
JSON5 a formato JSON
Formatear JSON5 y convertir a JSON estándar.
CANALIZACIÓN
JSONC a formato JSON
Formatear JSONC (JSON con comentarios) y convertir a JSON estándar.
CANALIZACIÓN
Decodificar y formatear un payload JWT
Analizar un token JWT, extraer su payload y formatear el JSON para inspección.
CANALIZACIÓN
Analizar cadena de consulta y formatear JSON
Analizar una cadena de consulta en pares clave-valor y luego formatear como JSON.
CANALIZACIÓN
Convertir TOML a JSON
Analizar un archivo de configuracion TOML en JSON para herramientas y APIs que esperan entrada JSON.
CANALIZACIÓN
TOML a JSON a CSV
Convertir TOML a JSON y luego a CSV para exportacion de datos.
CANALIZACIÓN
Convertir TOML a JSON luego YAML
Transformar una configuracion TOML en YAML via JSON para tooling de Kubernetes o CI.
CANALIZACIÓN
Convertir TOML a YAML via JSON
Transformar un archivo de configuracion TOML a formato YAML, usando JSON como representacion intermedia.
CANALIZACIÓN
Decodificar parametro URL anidado (Base64 JSON)
Desenvolver un parametro URL que transporta JSON Base64 codificado URL en JSON formateado legible.
CANALIZACIÓN
Generar interfaces TypeScript desde YAML
Convertir un documento YAML a definiciones de interfaz TypeScript, usando JSON como formato intermedio.
CANALIZACIÓN

Herramientas relacionadas