TypeError: Object 1360519005142 has no method 'toJSON'