Switch to use json-fn npm for serialization

Using this library allows objects and functions to be added to
a job, rather than just messages and properties.