Skip to content

Latest commit

 

History

History
106 lines (98 loc) · 1.94 KB

README.md

File metadata and controls

106 lines (98 loc) · 1.94 KB

JsonPropertiesSorter

It sorts the json data in mixed data types according to data priority.

Prerequisites

Before you begin you must have .Net Standard 2.1 installed and configured properly for your computer. Please see Download .NET SDKs

Run Json Properties Sorter

Paste your json content below and end with an empty line:
{
   "FirstName":"Arthur",
   "LastName":"Bertrand",
   "Adrress":{
      "StreetName":"Gedempte Zalmhaven",
      "Number":"4K",
      "City":{
         "Name":"Rotterdam",
         "Country":"Netherlands"
      },
      "ZipCode":"3011 BT"
   },
   "Age":35,
   "Hobbies":[
      "Fishing",
      "Rowing"
   ]
}
Output:
{
  "FirstName": "Arthur",
  "LastName": "Bertrand",
  "Age": 35,
  "Adrress": {
    "StreetName": "Gedempte Zalmhaven",
    "Number": "4K",
    "ZipCode": "3011 BT",
    "City": {
      "Name": "Rotterdam",
      "Country": "Netherlands"
    }
  },
  "Hobbies": [
    "Fishing",
    "Rowing"
  ]
}

Paste your json content below and end with an empty line:
{
   "menu":{
      "popup":{
         "menuitem":[
            {
               "value":"New",
               "onclick":"CreateDoc()"
            },
            {
               "value":"Open",
               "onclick":"OpenDoc()"
            },
            {
               "value":"Save",
               "onclick":"SaveDoc()"
            }
         ]
      },
      "id":"file",
      "value":"File"
   }
}

Output:
{
  "menu": {
    "id": "file",
    "value": "File",
    "popup": {
      "menuitem": [
        {
          "value": "New",
          "onclick": "CreateDoc()"
        },
        {
          "value": "Open",
          "onclick": "OpenDoc()"
        },
        {
          "value": "Save",
          "onclick": "SaveDoc()"
        }
      ]
    }
  }
}

License

This project is licensed under the MIT License - see the LICENSE.md file for details