updated with extended JSONfn (RegExp and Date added)
JSONfn was modified to process RegExp and Date objects.