Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 1.33 KB

README.md

File metadata and controls

24 lines (16 loc) · 1.33 KB

Inception plugin for Insomnia

Plugin for Insomnia to encode json within json. The name inception is a pop culture reference to the movie with the same title where people dream within a dream. Insomnia is a REST/HTTP client.

Use case

Many APIs are "envelope" APIs, that is they have a JSON model/schema and can carry a user-defined payload as a string value. Often this payload is also a JSON and needs to be encoded/escaped as a plain JSON string, becoming difficult to read and edit.

This plugin allows writing un-encoded JSON in the body editor to benefit from features like syntax highlighting and beautify.

Installation

Inception plugin can be installed like any other plugin: Managing Insomnia Plugins. The node package name is insomnia-plugin-inception.

Usage

Place the JSONString template tag anywhere in the name of the property which needs encoding.

This is an example to publish a message with JSON payload in RabbitMQ Management API:

body editor

When the request is sent the property is encoded:

body request