This should be an option so that if the input json is malformed it logs a message and carries on.
This should be an option so that if the input json is malformed it logs a message and carries on.