Skip to content

This plugin extracts the json from inside the `string` xml tag

Notifications You must be signed in to change notification settings

erodrigues-dev/insomnia-plugin-xml-json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Insomnia Plugin XML-JSON

Npm Version

This plugin was created with the incentive that I am working on a project in that the api returns me an XML and inside it has a JSON and with it the (Insomnia which is incredible software) fails to format properly.

The format that the api returns to me is the following:

<?xml version="1.0" encoding="utf-8"?>
<string>{"customers":[{"name":"Jhon Doe","email":"jhondoe@email.com"}]}</string>

The plugin only extracts the json from inside the string tag and returns it like this:

{
  "customers": [
    {
      "name": "Jhon Doe",
      "email": "jhondoe@email.com"
    }
  ]
}

Installing plugin

Access the Application / Preferences menu and then select the Plugins tab, enter the plugin name insomnia-plugin-xml-json and click Install Plugin.

plugins

After installing the plugin click on enable

installed

About

This plugin extracts the json from inside the `string` xml tag

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published