Usecases
In this section we try to explain some normal usecases for Piri.
It is highly recommended that you go through the introduction before continuing
Piri + CSV¶
CSV is one of the most used filetypes when exchanging data by files. Here are some examples to look at when working with csv
Piri + XML¶
XML is... ugh... but a lot of legacy systems expect XML as input and produces XML as output. We won't get rid of XML anytime soon, but atleast with piri we can live with it.
There are three things to look out for when working with XML.
- It's impossible to know if a child of an element is supposed to be an array or not.
- XML creates structure with Elements, but store data as either parameters or as text between element opening and closing tag.
Because of this there are no 1 to 1 XML->JSON converter that will work for any XML. Conventions must be chosen but a good starting point is the Parker convention
Other usecases¶
Add an issue at our issue tracker for request for other usecases/examples