My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 2305: JSON.stringify(calEvent) of an calEvent object now broken?
1 person starred this issue and may be notified of changes. Back to list
Status:  Done
Owner:  ----
Closed:  Oct 2014


Sign in to add a comment
 
Reported by pe...@medapp.co.za, Oct 1, 2014
I used to be able to execute:

JSON.stringify(calEvent)

On an event (Meteor does this automatically in sessions) this however no longer works. With the following error:

TypeError: Converting circular structure to JSONmessage: "Converting circular structure to JSON"stack: (...)get stack: function () { [native code] }set stack: function () { [native code] }__proto__: Error

Uncaught RangeError: Maximum call stack size exceeded 

Can you confirm this is no longer possible? Can it be fixed?

Thanks
Oct 30, 2014
Project Member #1 adamrs...@gmail.com
ya, a calendar event object has an object pointer reference to the event source, so that's what's causing the circular reference. You'll have to find a way to boil down the fc calendar event object into a simplified object of your own creation before json stringifying it.
Status: Done
Sign in to add a comment

Powered by Google Project Hosting