added toJSON function on result array of find function