class_docstr: Subcommand to output applications as serialized JSON
  
      
code: def file_contents(self, args: Namespace, doc: Document) -> str:
      """ """
      return serialize_json(doc.to_json(), indent=args.indent)
  
file_path: bokeh/src/bokeh/command/subcommands/json.py
imports: from __future__ import annotations
  import logging
  from argparse import Namespace
  from ...core.json_encoder import serialize_json
  from ...document import Document
  from ..subcommand import Argument
  from .file_output import FileOutputSubcommand
label_desc: Use image node_id 1 for calling the JSON obj's underlying member method code with example usage: obj.file_contents(args, doc) and returns: serialize_json