loopback icon indicating copy to clipboard operation
loopback copied to clipboard

Object inside object inside array getting converted to [Object]

Open sahilanguralla opened this issue 10 years ago • 1 comments

I am posting an object inside an object inside array of objects inside root object. But when I try to access it in remote method create, that I have overridden, it changes the innermost object to String "[Object]".

e.g. I posted:

{ 
    "name": "Random guy",
    "friends": [{
         "name": "Random Guy 2",
         "properties": {
             "age": "21",
             "married": false
         }
    }]
}

This is received in remote method as:

{ 
    "name": "Random guy",
    "friends": [{
         "name": "Random Guy 2",
         "properties": "[Object]"
    }]
}

Please reply ASAP. Thanks

sahilanguralla avatar Apr 18 '16 11:04 sahilanguralla

My bad. Everything was fine, it was just the console logs. Sorry Again.

sahilanguralla avatar Apr 19 '16 08:04 sahilanguralla