You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

insomnia-plugin-xml-json-response

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

insomnia-plugin-xml-json-response

transforms XML responses into Json by removing XML tags

1.0.2
latest
Source
npmnpm
Version published
Weekly downloads
4
-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

Insomnia Plugin XML-JSON

NPM Version Made by Godrix License

This plugin removes the XML tags from server responses that returns JSON within an XML.

🚀 Installation

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

  • After installing the plugin click on enable

Example

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

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope
  xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <soap:Body>
    <GetStatusPlacesResponse
      xmlns="http://tempuri.org/">
      <GetStatusPlacesResult>
      [{"Client":3,"SubClientId":7,"PlaceId":1,"PlaceName":"Local","PlacePhone":"","Latitude":-47.158580,"Longitude":-28.158542,"Unknown":0,"Ok":0,"NetworkLess":0,"Warning":0,"CriticalError":0,"NoInformation":0}]</GetStatusPlacesResult>
    </GetStatusPlacesResponse>
  </soap:Body>
</soap:Envelope>

xmlResponse

The plugin extracts all the contents that are inside the xml tags

[
  {
    "ClientId": 3,
    "SubClientId": 7,
    "PlaceId": 1,
    "PlaceName": "Local",
    "PlacePhone": "",
    "Latitude": 0,
    "Longitude": 0,
    "Unknown": 0,
    "Ok": 0,
    "NetworkLess": 0,
    "Warning": 0,
    "CriticalError": 0,
    "NoInformation": 0
  }
]

xmlResponse

🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page.

  • Make a fork;
  • Create a branck with your feature: git checkout -b awesome-feature;
  • Commit changes: git commit -m 'feat: My awesome feature';
  • Make a push to your branch: git push origin awesome-feature.

After merging your receipt request to done, you can delete a branch from yours.

Show your support

Give a ⭐️ if this project helped you!

:memo: License

This project is under the MIT license. See the LICENSE for details.

Made with ♥ by Godrix :wave: Get in touch!

Keywords

insomnia

FAQs

Package last updated on 18 Jun 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts