I trying to send post with some object using vibe.d rest client generator with such code:
class App
{
string id;
string cmd;
}
interface IntREST
{
@path("/apps")
@method(HTTPMethod.POST)
App postApp(App app);
}
and vibe.d generate json with nesting like such
{
"app": {
"id": "appid",
"cmd": "command"
}
}
but I need to send json without nesting like
{
"id": "appid",
"cmd": "command"
}