ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Yaml​To​Json

Sublime Text plugin to convert Yaml to JSON and vice versa

Details

  • 1.0.0
  • github.​com
  • 10 years ago
  • 2 hours ago
  • 4 years ago

Installs

  • Total 3K
  • Win 1K
  • Mac 2K
  • Linux 417
Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5 Sep 4 Sep 3 Sep 2 Sep 1 Aug 31 Aug 30 Aug 29 Aug 28 Aug 27 Aug 26 Aug 25 Aug 24 Aug 23 Aug 22 Aug 21 Aug 20 Aug 19 Aug 18 Aug 17 Aug 16 Aug 15 Aug 14 Aug 13 Aug 12 Aug 11 Aug 10 Aug 9 Aug 8 Aug 7 Aug 6 Aug 5 Aug 4 Aug 3 Aug 2 Aug 1 Jul 31 Jul 30 Jul 29
Windows 2 0 1 1 0 1 0 0 0 1 0 0 0 1 2 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 1 1 0 1 0 0 0 0 1 0 0
Mac 0 0 1 0 1 0 0 3 0 0 2 3 0 0 2 0 0 0 2 2 0 3 1 2 0 0 0 0 0 1 1 2 3 0 1 1 1 1 0 1 0 1 1 0 1 2
Linux 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 2 1 0 0 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0

Readme

Source
raw.​githubusercontent.​com

YamlToJson Sublime Text plugin

Installation

  • Package Control: Coming soon.
  • Manual installation:

    cd <Data Directory>/Packages
    git clone https://github.com/ryandao/SublimeYamlToJson.git
    

The location of Data Directory can be found in this document or simply just go to Preferences > Browse Packages.

Usage

The default shortcuts are ["ctrl+y", "ctrl+j"] (pressing y and then j while holding ctrl) for converting YAML to JSON and ["ctrl+j", "ctrl+y"] for JSON to YAML. It's the same for OSX, Windows, and Linux. To customize, just add this configuration to your key bindings and change accordingly:

{
    "keys": [
        "ctrl+y", "ctrl+j"
    ],
    "command": "yaml_to_json"
},
{
    "keys": [
        "ctrl+j", "ctrl+y"
    ],
    "command": "json_to_yaml"
}