Looking for some insight on retrieving process information from a VPS with PM2. However, the JSON string returned by PM2 is malformed, making it impossible to run JSON.parse()
.
An example of the output provided by PM2:
'{data: 0, informations: "hello", name: "test"}'
If you are familiar with how JSON parsing works, you'll understand the issue at hand - this string cannot be parsed.
Do you have any suggestions for resolving this issue using an alternative function?
Thank you in advance.