class_docstr: Convert msg spec V4 to V5
class_docstr_tok: ["Convert","msg","spec","V4","to","V5"]
docstr: Handle display data.
docstr_tok: ["Handle","display","data","."]
code: def display_data(self, msg: Dict[str, Any]) -> Dict[str, Any]:
      """Handle display data."""
      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 json
  import re
  from typing import Any, Dict, List, Tuple
  from ._version 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