This extension converts a JSON object to JavaScript object in Visual Studio Code.
This extension is available for free in the Visual Studio Code Marketplace.
ext install json-to-js-object
- Converts JSON Object to JavaScript Object
- Converts
snake-case
keys tocamelCase
keys while converting the object
- Select a valid JSON object in your editor (if nothing is selected then the whole file is checked)
- Choose
Convert JSON to JS Object
in the command palette (Cmt/Ctrl+Shift+P
)
This extension does not define any keyboard shortcuts by default. However if you need one, you can use the jsonToJSObject.convert
command to define your own shortcut.
This extension is released under the MIT License.