Making decoder optional; passing through message and serializing as JSON