#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

#23 in #xml-data

Download history 157/week @ 2023-12-04 306/week @ 2023-12-11 59/week @ 2023-12-18 10/week @ 2023-12-25 22/week @ 2024-01-08 14/week @ 2024-01-15 17/week @ 2024-01-29 23/week @ 2024-02-05 61/week @ 2024-02-12 46/week @ 2024-02-19 82/week @ 2024-02-26 70/week @ 2024-03-04 56/week @ 2024-03-11 85/week @ 2024-03-18

297 downloads per month
Used in 7 crates (6 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