Add reviver argument to parseJSON method

reviver function is passed directly to JSON.parse