convert xml documents to json object with obtional simple transformation rules