JSON stringify function supporting asynchronous property values via deferred promises.