process: make serialization function configurable
Checklist
-
tests and code linting passes -
a test and/or benchmark is included -
documentation is changed or added -
the commit message follows commit guidelines
Affected core subsystem(s)
process
Description of change
By default process.send()
serializes messages using vanilla JSON.stringify(). This commit makes the serialization function configurable.