Skip to content

toJSON issue #128

@imrefazekas

Description

@imrefazekas

Dear finnsson,

I got an issue while calling toJSON.

console.log( ko.toJSON( theViewModel ) );

pager.extendWithPage( theViewModel );

console.log( ko.toJSON( theViewModel ) );

The first executed perfectly

{"personal":{"sex":"male", ....

the second console logging fails:

TypeError: JSON.stringify cannot serialize cyclic structures.

How can I use the toJSON of knockout? What do I miss?

Thanks,

Imre

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions