packages feed

xml-to-json 2.0.0 → 2.0.1

raw patch · 2 files changed

+6/−8 lines, 2 filesdep ~base

Dependency ranges changed: base

Files

README.md view
@@ -2,7 +2,9 @@  Fast & easy library & command line tool for converting XML files to JSON. +## **Heads up!** The project has been split into two projects. See **[xml-to-json-fast](https://github.com/sinelaw/xml-to-json-fast)** for a low-memory-usage version that has less features. + ## Contents * [Overview](#overview) * [Installation](#installation)@@ -22,11 +24,7 @@  ### "Fast" xml-to-json-fast -The fast, simple `xml-to-json-fast` executable provides an unambiguous one-to-one mapping of xml data to json data. It is suitable for very large xml files (has been tested on a 500MB file) and uses very little memory. However, `xml-to-json-fast` doesn't provide for any control over the output.--When using "fast" (`xml-to-json-fast`), the output reflects the exact structure of the xml, which is allowed to be somewhat malformed (resulting in invalid json).--**Formatting:** Currently `xml-to-json-fast` does **not** format the resulting json. If whitespace formatting is required, you can use a json formatting program such as [aeson-pretty](https://hackage.haskell.org/package/aeson-pretty) (on debian/ubuntu, can be install with `sudo apt-get install aeson-pretty`). Note that most of the json formatters are memory bound, so very large json files may cause the formatter to run out of memory.+The so-called "fast" version (which uses a lot less memory) has been forked into a separate project, [xml-to-json-fast](https://github.com/sinelaw/xml-to-json-fast).  ### "Classic" xml-to-json 
xml-to-json.cabal view
@@ -1,5 +1,5 @@ name:                xml-to-json-version:             2.0.0+version:             2.0.1 synopsis:            Library and command line tool for converting XML files to json description:                               The xml-to-json executable (and library) converts XMLs to json format, gaining readability while losing information such as comments, attribute ordering, and such.@@ -32,7 +32,7 @@   exposed-modules: Text.XML.JSON.XmlToJson   extensions: CPP   hs-source-dirs: src-  build-depends:   base >= 4.5.0, hxt, aeson, text, unordered-containers, hashable, vector, bytestring, hxt-tagsoup, hxt-expat, containers, regex-posix, tagsoup+  build-depends:   base >= 4.5.0 && < 5, hxt, aeson, text, unordered-containers, hashable, vector, bytestring, hxt-tagsoup, hxt-expat, containers, regex-posix, tagsoup   if (!os(windows))     build-depends:  hxt-curl, curl     cpp-options: -DUseCurl@@ -43,7 +43,7 @@   main-is: Main.hs                hs-source-dirs: src-exec   extensions: CPP-  build-depends:   base >= 4.5.0 && < 4.8, xml-to-json+  build-depends:   base >= 4.5.0 && < 5, xml-to-json   ghc-options: -Wall  -rtsopts   Ghc-Prof-Options:  -prof -auto-all  -caf-all