lowsky24 / aspjson

Automatically exported from code.google.com/p/aspjson
0 stars 0 forks source link

toJSON method enhancement for Scripting.Dictionary #17

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Any reason we can't pass a Scripting.Dictionary object to the toJSON function 
or method?

I've modified toJSON on my system to support this as I find it very handy to 
pass in dicts or even nested dicts or arrays of dicts etc.

Attached is my toJSON function. I'm not sure if it fits in with your goals 
for the way things work - but my changes are free to use - either public 
domain,MIT or BSD style license. No attribution required. (it's a trivial 
addition anyway but I thought I'd better explicitly make a statement re 
licensing)

Original issue reported on code.google.com by i...@precisium.com.au on 4 May 2010 at 2:36

Attachments:

GoogleCodeExporter commented 8 years ago
This approach is unsafe.

Original comment by tugrulto...@gmail.com on 13 Dec 2010 at 9:17