JSON to Language Struct / Class Generator
About Properties → JSON
The Java `.properties` to JSON Converter transforms flat dot-notation properties (`spring.datasource.url = ...`) into structured, nested JSON objects with automatic type conversion for booleans and numbers.
How to Use Properties → JSON
Step 1
Paste your Java `.properties` file into the left pane.
Step 2
Toggle nested object expansion and numeric type conversion.
Step 3
Review the parsed JSON output.
Step 4
Click "Copy JSON".
Practical Use Cases for Properties → JSON
Migrating Spring Boot Properties to JSON / YAML
Convert legacy Java `application.properties` files into hierarchical JSON configuration files for modern microservice architectures.
Parsing Java Resource Bundles in React i18n
Transform Java `.properties` localization bundles into JSON translation files for `react-i18next` and `next-intl`.
Input & Output Examples
Converting Dot-Notation Properties to Nested JSON
`db.host=localhost\ndb.port=5432\ndb.enabled=true`
`{\n "db": {\n "host": "localhost",\n "port": 5432,\n "enabled": true\n }\n}`Key Features & Performance
- ✓Expands dot-separated keys (`a.b.c`) into deep nested JSON hierarchies.
- ✓Auto-detects numeric strings and booleans (`true`/`false`).
- ✓Handles ISO-8859-1 Unicode escape sequences (`\uXXXX`) automatically.
- ✓100% Client-Side memory execution.
- ✓1-Click Copy JSON output.
Key Terminology & Definitions
Dot-Path Expansion
The process of parsing nested key strings (e.g. `server.ssl.key-store`) into deep JSON objects `{server: {ssl: {key-store: ...}}}`.
ResourceBundle
A Java standard class used to store locale-specific objects and strings loaded from `.properties` files.
