Replace substring in JSON - json
I have this json string i need to replace \r with blank in javascript. Can anyone help?
String JSONString = [{"Category":"Business Signoff","Task Name":"Met with internal stakeholders","Assigned To":"","Priority":"High","Status":"In Progress","Due Date":"","Start Date":"","End Date":"","Description":"","Notes\\r":"\\r"},{"Category":"Business Signoff","Task Name":"Evidence of physical completion","Assigned To":"","Priority":"High","Status":"In Progress","Due Date":"","Start Date":"","End Date":"","Description":"","Notes\\r":"\\r"},{"Category":"Business Signoff","Task Name":"CO certifies contract documentation closeout is complete","Assigned To":"","Priority":"High","Status":"In Progress","Due Date":"","Start Date":"","End Date":"","Description":"","Notes\\r":"\\r"},{"Category":"Business Signoff","Task Name":"All retention, storage, and disposal actions have been taken","Assigned To":"","Priority":"High","Status":"In Progress","Due Date":"","Start Date":"","End Date":"","Description":"","Notes\\r":"\\r"},{"Category":"Business Signoff","Task Name":"All reporting has been completed","Assigned To":"","Priority":"High","Status":"In Progress","Due Date":"","Start Date":"","End Date":"","Description":"","Notes\\r":"\\r"},{"Category":"Business Signoff","Task Name":"Government furnished property has beed disposed","Assigned To":"","Priority":"High","Status":"In Progress","Due Date":"","Start Date":"","End Date":"","Description":"","Notes\\r":"\\r"},{"Category":"Business Signoff","Task Name":"Required modifications have been submitted for closeout","Assigned To":"","Priority":"High","Status":"In Progress","Due Date":"","Start Date":"","End Date":"","Description":"","Notes\\r":"\\r"},{"Category":"Business Signoff","Task Name":"Subcontracting plan requirements have been met","Assigned To":"","Priority":"High","Status":"In Progress","Due Date":"","Start Date":"","End Date":"","Description":"","Notes\\r":"\\r"},{"Category":"SubK Manager Signoff","Task Name":"Patent review has been completed","Assigned To":"","Priority":"High","Status":"In Progress","Due Date":"","Start Date":"","End Date":"","Description":"","Notes\\r":"\\r"},{"Category":"SubK Manager Signoff","Task Name":"Classified material has been disposed","Assigned To":"","Priority":"High","Status":"In Progress","Due Date":"","Start Date":"","End Date":"","Description":"","Notes\\r":"\\r"},{"Category":"SubK Manager Signoff","Task Name":"Data rights are reported","Assigned To":"","Priority":"High","Status":"In Progress","Due Date":"","Start Date":"","End Date":"","Description":"","Notes\\r":"\\r"},{"Category":"SubK Manager Signoff","Task Name":"Company and vendor have signed release","Assigned To":"","Priority":"High","Status":"In Progress","Due Date":"","Start Date":"","End Date":"","Description":"","Notes\\r":"\\r"},{"Category":"SubK Manager Signoff","Task Name":"Value engineering issues settled","Assigned To":"","Priority":"High","Status":"In Progress","Due Date":"","Start Date":"","End Date":"","Description":"","Notes\\r":"\\r"},{"Category":"SubK Manager Signoff","Task Name":"Indirect cost rates have been settled","Assigned To":"","Priority":"High","Status":"In Progress","Due Date":"","Start Date":"","End Date":"","Description":"","Notes\\r":"\\r"},{"Category":"SubK Manager Signoff","Task Name":"Cost or pricing data was submitted, or not required","Assigned To":"","Priority":"High","Status":"In Progress","Due Date":"","Start Date":"","End Date":"","Description":"","Notes\\r":"\\r"},{"Category":"SubK Manager Signoff","Task Name":"Closeout audit was conducted and resolved or was not required","Assigned To":"","Priority":"High","Status":"In Progress","Due Date":"","Start Date":"","End Date":"","Description":"","Notes\\r":"\\r"},{"Category":"SubK Manager Signoff","Task Name":"Final invoice has been approved and paid","Assigned To":"","Priority":"High","Status":"In Progress","Due Date":"","Start Date":"","End Date":"","Description":"","Notes\\r":"\\r"},{"Category":"SubK Manager Signoff","Task Name":"Excess funding has been deobligated","Assigned To":"","Priority":"High","Status":"In Progress","Due Date":"","Start Date":"","End Date":"","Description":"","Notes\\r":"\\r"},{"Category":"SubK Manager Signoff","Task Name":"Vendor out of business, in bankruptcy, or in litigation","Assigned To":"","Priority":"High","Status":"In Progress","Due Date":"","Start Date":"","End Date":"","Description":"","Notes\\r":"\\r"}]
Related
where does BIOS store com port enable?
My goal is to write a program in DOS that will disable COM2 in BIOS. Any solution must work in DOS. Where does the BIOS store the Enable / Disable state for peripherals such as serial ports? I have examined the CMOS and nothing other than the clock data changes when I enable the port in BIOS and reboot. The CPU board is an Advantech PCA6028, a single-host board with an AMI BIOS circa 2019.
Mysql IPv6 Connectivity
I want to configure mysql 5.7 on linux machine which is having IPV6 ip address. How can I connect server machine by client machine which is having IPV4 address. And which configuration parameters which I need to change to configure IPV6 connectivity.
If your server only has IPv6 and your client has only IPv4 then they cannot communicate without help from a third system. The most common ways are SIIT-DC gateways, server side reverse proxies to make the server reachable over IPv4, or client side proxies to allow the client to connect to IPv6 services. IPv4 and IPv6 connectivity both depend on the network provider. You can set up tunnels, but native connectivity is strongly preferred.
Deploying Syslog server on openshfit
We are having Syslog server that is written in C++? The clients are TCP based. Can I deploy the server on open shift? Will I get HA out of the box? Any pointers will help me to proceed.
Unless your syslog server is going to accept logging connections over ports 80 or 443, then you won't be able to host it on OpenShift. OpenShift only allows external connections on port 80, 443, 8000, and 8443, which are all http/ws ports.
MSDTC issues - transaction times out with Event ID 4359
I have a baffling issue with MSDTC We have 4 machines in our development project but only 1 cannot negotiate a MSDTC transaction. We are using WCF service, with multiple Linq-2-SQL DataContexts, so the transaction is being escalated to the DTC. 1 machine ( Windows 7 SP 1 ) out of 4 fails when invoking a second datacontext call. The DB server is a Windows Server 2008 R2 / SQL Server 2008 R2 This is the event log Source: MSDTC Client Event ID: 4359 Task Category: MSDTC Proxy General: “MS DTC is unable to communicate with MS DTC on a remote system. MS DTC on the primary system established an RPC binding with MS DTC on the secondary system. However, the secondary system did not create the reverse RPC binding to the primary MS DTC system before the timeout period expired. Please ensure that there is network connectivity between the two systems. Error Specifics:” MSDTC is setup the same on all 4 machine, Network DTC Access - Enabled Client and Administration - Both Allow Remote Clients and Allow Remote Administration checked Transaction Manager Communication - Allow outbound and Allow inbound checked, Mutual Authentication Required Enable XA Transaction unchecked Enable SNA LU 6.2 Transactions checked All machines ( includeing the DB server ) has the DTC logon account set to NT Authority\NetworkService I have checked that the failing machine can resolve the DB server by NETBIOS name, and that ping -a {IP} resolves the IP address back to the netbios name, and vise versa. When the transaction is escalated to the DTC, I see an entry in the transaction list, on both client and DB server, in the form of user_transaction { SOME GUID }, which times out after about 1 minute The DB is not logging anything on it's event logs There is no difference if all firewalls are disabled. Does anyone have any idea what to look at next ? Cheers... Robert === Update === MSDTC was incorrectly configured on the machine... the dev box was cloned from an image and replicated some internal GUIDs. Reinstalling MSDTC fixed the issue msdtc -uninstall msdtc -install
Server chose unsupported or disabled protocol: SSLv3
Trying to connect to an imap server from an app that uses javamail to connect. I can't modify the code, but it's throwing the 'Server chose unsupported or disabled protocol: SSLv3' error, and I can't find a property that I can override to enable that protocol. The server I'm connecting to does not support TLSv1 (yes, it's old).
You should be able to set a specific socket factory using SSLv3 instead of TLSv1 via the mail.smtp.ssl.socketFactory property of JavaMail (see the Socket Factories section in the JavaMail release notes and MailSSLSocketFactory). Before returning the SSLSocket in your SSLSocketFactory implementation (createSocket), use setEnabledProtocols to allow SSLv3.