Use Lims::Core::Helpers::load_json instead of JSON.parse in message_payload