There seems to be a regression in v1.9.0 where objects with undefined values are being included in the json output, which is invalid. For example:
serialize({ "foobar": undefined }); Output:
This is not valid json, and will fail when run through JSON.parse()
In v1.8.0 this worked correctly with the following output: