script to produce json from xml exmaples