JSON to Spring Config Converter
A VS Code extension that converts JSON files into Spring Boot configuration formats (YAML or Properties).
Features
- Convert JSON to Spring Boot YAML format
- Convert JSON to Spring Boot Properties format
- Support for nested objects and arrays
- Keyboard shortcut:
Ctrl+Shift+J (Windows/Linux) or Cmd+Shift+J (Mac)
Usage
- Open a JSON file in VS Code
- Press
Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (Mac) to open the Command Palette
- Search for and select "Convert JSON to Spring Config"
- Choose your desired output format:
- YAML: For
application.yaml configuration files
- Properties: For
application.properties configuration files
- The converted configuration will appear in a new editor tab
- Save the file with your preferred filename
Example
Input JSON:
{
"some.key1": "some-value",
"some.key2": "some-value2"
}
Output - YAML format:
some:
key1: some-value
key2: some-value2
Output - Properties format:
some.key1=some-value
some.key2=some-value2
| |