You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears though that what's being sent is [object Object] in the second indentation, am I doing something wrong?
I'm outputting the POST request on the receiving end, getting this:
{"wheres":"[object Object]"}
---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/29481720-objects-within-objects?utm_campaign=plugin&utm_content=tracker%2F6332594&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F6332594&utm_medium=issues&utm_source=github).
The text was updated successfully, but these errors were encountered:
I've just had a good tinker, I was able to get round it by using JSON.stringify to populate the object in the second indentation, on ResultServer: 1, then things worked as normal, so the request then became:
var data = {
"wheres": {
"{"ResultServer":1}"
}
};
Is this a case of I'm doing something that wasn't intended to be supported by aja?
because data() set the value either in body or encoded regarding the context. If you don't want to specify the type you can enforce the encoding of the data in the body using the body() method instead.
Hi there,
I'm attempting to send an object like the one below:
Then using:
It appears though that what's being sent is
[object Object]
in the second indentation, am I doing something wrong?I'm outputting the POST request on the receiving end, getting this:
--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/29481720-objects-within-objects?utm_campaign=plugin&utm_content=tracker%2F6332594&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F6332594&utm_medium=issues&utm_source=github).{"wheres":"[object Object]"}
The text was updated successfully, but these errors were encountered: