class_docstr: Convert msg spec V4 to V5
class_docstr_tok: ["Convert","msg","spec","V4","to","V5"]
code: def display_data(self, msg):
      content = msg["content"]
      content.pop("source", None)
      data = content["data"]
      if "application/json" in data:
          try:
              data["application/json"] = json.loads(
                  data["application/json"]
              )
          except Exception:
              # warn?
              pass
      return msg
  
imports: import re
  import json
  from jupyter_client import protocol_version_info
label_desc: Use image node_id 10 for calling the V4toV5 obj's underlying member method code with example usage: obj.display_data(msg) and returns: msg