NativeScript / nativescript-background-http

Background Upload plugin for the NativeScript framework
Apache License 2.0
102 stars 50 forks source link

Ability to pass an object in one param #258

Closed vahidvdn closed 4 years ago

vahidvdn commented 4 years ago

I want to pass such a param:

this.locationData.location.title = 'test';
this.locationData.location.phone= '123456';
params.push({ name: "location", value: this.locationData });

But it sends a string like: "object Object" to the server. Either I should do it throw the loop or stringify the json. While this is possible in the Angular http module.