#json #xml #converting #xml-data

xmltojson

A simple crate for converting XML to JSON

3 releases

0.1.3 May 9, 2023
0.1.1 May 23, 2021
0.1.0 May 23, 2021

#28 in #xml-data

Download history 24/week @ 2024-07-05 46/week @ 2024-07-12 49/week @ 2024-07-19 42/week @ 2024-07-26 50/week @ 2024-08-02 37/week @ 2024-08-09 44/week @ 2024-08-16 32/week @ 2024-08-23 56/week @ 2024-08-30 53/week @ 2024-09-06 69/week @ 2024-09-13 89/week @ 2024-09-20 80/week @ 2024-09-27 93/week @ 2024-10-04 298/week @ 2024-10-11 168/week @ 2024-10-18

663 downloads per month
Used in 10 crates (8 directly)

LGPL-3.0+

23KB
533 lines

A Rust crate implementing Stefan Goessner’s xml2json design. This can be very useful for turning XML data into JSON for processing in JSON data stores or engines such as Elasticsearch or PostgreSQL (JSON/JSONB).

See the tests in src/lib.rs for examples of how XML gets converted to JSON structures

Dependencies

~1.6–2.2MB
~40K SLoC