data.sh with JSON and XML support added