Skip to content

Can't pass nested JSON Object #35

@WilliamMcCumstie

Description

@WilliamMcCumstie

I noticed when you want to pass a nested JSON object with put item (also update item), it insert the object into the database as [object, object].

I haven't started looking into your code in to mush depth yet, but as aws can support nested json objects, it would worth looking into.

Example
Trying to insert the following object into a new table won't give any warnings

var object = {
	"id": "id",
	"num": 1,
	"str": "string",
	"Obj": {
		"num": 1,
		"str": "string"
	}
};
dynode.putItem("NewTable", object);

However amazon will show it inserted as:

{
  "id": "id",
  "num": 1,
  "Obj": "[object Object]",
  "str": "string"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions