Convert XML to JSON in ionic v1?


Does anyone know any plugins that will help me convert an $http request from XML to JSON with Ionic version 1?



Look at this library:


It doesn’t look like this package would work with the Angular 1 version.


It is just Javascript. I use it in an Angular 1/Electron project with no issue.


Oh, maybe I misread it. How do you inject it as a dependency in angular 1? The docs are using a require statement to pull in the library.


To be more specific, how would I use it in this situation:

                ).success(function (response) {
                    // convert to json
                }).error(function(error) {
                    // show error


Hello @Joshblf where you able to fix this? I’m currently facing the same issue