Giter Club home page Giter Club logo

salesforce-xml2json's Introduction

salesforce-xml2json

Converts an XML file to JSON or all the XML files to JSON in a given force-app directory. When finished, converts them back to XML.

Installation

  1. Clone this repo
  2. (Optional, you can skip this step if you don't know what it means) Create a virtualenv and activate it
  3. pip install -r requirements.txt

Usage

python xml2json.py --toxml|--tojson|-x|-j file|directory

Converts all XML files in a given force-app dir to JSON, or vice-versa. The original XML files are not deleted. JSON files are only converted to XML if a corresponding XML file exists in the same directory. In other words, only JSON files which were generated by this tool will be converted back to XML files.

Arguments -j, --tojson: Converts all XML files to JSON. Does not delete the original XML files.
-x, --toxml: Converts all JSON files with corresponding XML counterparts back to XML, and deletes the JSON file.
file: Path to a file.
directory: Path to force-app directory. It is recommended to run --tojson once followed by --toxml to update the line spacing and indentation first if you are planning to use this tool in a bulk fashion.

salesforce-xml2json's People

Contributors

rnavroze avatar

Watchers

James Cloos avatar  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.