Giter Club home page Giter Club logo

insomnia-plugin-sort-json's Introduction

Insomnia - Sort JSON Responses

This plugin sorts the properties of JSON responses using sort-json.

sort-json can be found at https://www.npmjs.com/package/sort-json

✅ Install

  1. Go to Insomnia/Preferences and choose the Plugins tab
  2. Enter insomnia-plugin-sort-json and click on Install Plugin
  3. That's it, enjoy!

⏬ Update Plugin Version

  1. Follow the same instructions for Installing!

🛠 Configuration

  1. Use the large "Insomnia" button in the top left
  2. Under Plugins near the bottom, you'll see a few options:
  • 🔼 sort-json ascending
    • Sorts the resulting JSON response in alphabetical ascending order
  • 🔽 sort-json descending
    • Sorts the resulting JSON response in alphabetical descending order
  • 🅰️ sort-json ignore case
    • Ignores uppercases in JSON property names when sorting
  • 🅰️ sort-json no-ignore-case
    • Does not ignore uppercases in JSON property names when sorting
  • ⚙️ sort-json reset to defaults
    • Resets all settings for sort-json to their defaults
      • sort-ascending: true
      • sort-depth: 5
      • ignore-case: true

⚠️ Special Configuration Note

sort-depth is currently not configurable through a nice UI in Insomnia. You can open the plugins folder directly and change the value of sortDepthDefault inside index.js if you'd like to change the value. The setUpDefaults will just always set the value of sort-depth to whatever you configure the default to be. This is a stop-gap until Insomia updates their context.app api to include prompt windows from workspaceAction selections.

sort-depth default value is 5, which means it will sort up to 5 levels deep inside a returned JSON object.

insomnia-plugin-sort-json's People

Contributors

sesgoe avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.