I have a custom function (constructor). it has a number of member 
variables. I am using Express.
What I need to do is to return a JSON, to the client, containing an array 
of my custom function.

So lets say I have MyObject, it has member name and password.
I have an array of MyObject instances. I need to send a JSON representing 
this array.

Do I have to have a jsonify function for MyObject and call this for each 
object in my array?
Or is there an easier, built-in function for this kind of work?

Reza




-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nodejs+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to