https://github.com/sallar/vscode-json-to-js-object
VSCode extension for converting JSON objects to JavaScript objects
https://github.com/sallar/vscode-json-to-js-object
json json-converter vscode vscode-extension
Last synced: about 1 year ago
JSON representation
VSCode extension for converting JSON objects to JavaScript objects
- Host: GitHub
- URL: https://github.com/sallar/vscode-json-to-js-object
- Owner: sallar
- License: mit
- Created: 2017-03-15T15:58:52.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-16T20:40:05.000Z (over 9 years ago)
- Last Synced: 2025-04-20T20:35:35.268Z (about 1 year ago)
- Topics: json, json-converter, vscode, vscode-extension
- Language: TypeScript
- Homepage: https://marketplace.visualstudio.com/items?itemName=sallar.json-to-js-object
- Size: 6.28 MB
- Stars: 17
- Watchers: 1
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# VSCode Extension: JSON to JS Object
This extension converts a JSON object to JavaScript object in Visual Studio Code.
## Install
This extension is available for free in the [Visual Studio Code Marketplace](https://marketplace.visualstudio.com/items?itemName=sallar.json-to-js-object).
```
ext install json-to-js-object
```
## Features
+ Converts JSON Object to JavaScript Object
+ Converts `snake-case` keys to `camelCase` keys while converting the object
## How To Use
1. Select a valid JSON object in your editor (if nothing is selected then the whole file is checked)
2. Choose `Convert JSON to JS Object` in the command palette (`Cmt/Ctrl+Shift+P`)

## Keyboard Shortcut
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.
## License
This extension is released under the [MIT License](LICENSE).