Question [Q][JS] Parse Cloud Code problem.


I'm working on a project where I need to store some information from the Windows Phone store in my Parse database, but since I'm new to both Parse and JavaScript (only supported language for Cloud Code) I need some help.

There seem to be something wrong with a property, but more than that I can't get, not which row or anything.

My code at the moment is this:

Parse.Cloud.job("getWP8Apps", function(request, response) {
  var query = new Parse.Query("developer");
  query.each(function(results) {
      url: '' + results.get("publisherName"),
	  success: function(httpResponse) {
	    var apps =;
		for(var app in apps) {
		  var application = Parse.Object.extend("application");
		  var newApp = new application();{
		  categories: app.categories,
		  guid: app.guid,
		  haslivetile: app.haslivetile,
		  icon: app.icon,
		  offers: app.offers,
		  publisher: app.publisher,
		  publisherid: app.publisherid,
		  rating: app.rating,
		  ratingCount: app.ratingcount,
		  releaseDate: app.releasedate,
		  version: app.version
		  }, {
		    success: function(newApp){ console.log( + " saved!"); },
		    error: function(newApp, error) {console.error("Something failed: " + error.description); }});
	  error: function(error) {
	    console.error("Something failed: " + error.description);
The developer object that I'm fetching from the storage is a small collection of items containing some general information about the different developers included in this, amongst that information, their Windows Phone Store Publisher Name which is to be used to fetch a list of their published applications.

The application object is a json converted class through the Parse Class Import function (that function converts the Json to a valid table structure for data storage of the result).

So, anyone with some ideas on what could be the issue here?

Any help is highly appreciated!

NOTE: This code is to run in the cloud, not in the app. Thats why I posted this in the web section. If it fits better somewhere else, feel free to move it.
IzaacJ | IzaacJ_Dev
Apps: PassPro | Infosode | ROMAbout (CHEFS ONLY)
PROJECTS: TrashMap (Soon heading for private beta)
My Official WP8 Apps: PassPro Free

Nokia Lumia 1520: WP 8.10.12382.878 (WP8.1 Developer Preview) | Officially DevUnlocked
Nokia Lumia 920: WP 8.10.12382.878 (WP8.1 Developer Preview) | Officially DevUnlocked
Nokia C6-00: Symbian S60v5 | "Jailbroken"