xml-to-json-fast: Fast, light converter of xml to json capable of handling huge xml files

[ json, library, mit, program, web, xml ] [ Propose Tags ] [ Report a vulnerability ]

Assumes input xml is valid, which allows constant memory usage (<4 MB) and faster parsing. For a fully-featured, but memory-bound converter see the xml-to-json package.

If not input file is given, reads from stdin (so it can be used in a unix pipe chain).


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 1.0.0, 1.0.1, 2.0.0
Dependencies base (>=4.5.0 && <5), directory, process, tagsoup, text, xml-to-json-fast [details]
License MIT
Copyright Copyright Noam Lewis, 2014
Author Noam Lewis
Maintainer jones.noamle@gmail.com
Category Web, XML, JSON
Home page https://github.com/sinelaw/xml-to-json-fast
Bug tracker https://github.com/sinelaw/xml-to-json-fast/issues
Source repo head: git clone https://github.com/sinelaw/xml-to-json-fast.git
Uploaded by NoamLewis at 2015-03-30T21:09:29Z
Distributions LTSHaskell:2.0.0, NixOS:2.0.0, Stackage:2.0.0
Reverse Dependencies 1 direct, 0 indirect [details]
Executables xml-to-json-fast
Downloads 3422 total (18 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2015-03-30 [all 1 reports]

Readme for xml-to-json-fast-2.0.0

[back to package description]

xml-to-json-fast

Fast, light converter of xml to json capable of handling huge xml files

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. Please see the other project, xml-to-json.

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 (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.