Change XML to JSON

Improve Regex
Fix Routes