meteorhacks / meteor-inject-initial

Allow injection of arbitrary data to initial Meteor HTML page
Other
78 stars 11 forks source link

EJSON instead of JSON #1

Closed Nemo64 closed 10 years ago

Nemo64 commented 10 years ago

As far as I see you use JSON.parse and JSON.stringify (ref) to transfer data. The first problem is that This works only in IE8+ standart mode (not a huge issue). The other is, there is a JSON way included into meteor.

You could simply use EJSON for your data. This does not only take care of browser issues you might have, it also allows transferring of instances etc. ;)

gadicc commented 10 years ago

Haha so awesome to get open issues for packages I haven't even released yet :) Thanks for pointing this out... all valid, as usual :) Old habits die hard. Great that this was fixed before being released.