switched backend XML to JSON conversion