code: def test_json(dvc, mocker, capsys, mocked_status, args, to_omit):
      mocker.patch(
          "dvc.repo.Repo.data_status", return_value=mocked_status
      )
      assert main(["data", "status", "--json", *args]) == 0
      out, err = capsys.readouterr()
      assert out.rstrip() == json.dumps(
          omit(mocked_status, [*to_omit, "git"])
      )
      assert not err
  
file_path: dvc/tests/unit/command/test_data_status.py
imports: import json
  import pytest
  from funcy import omit
  from dvc.cli import main, parse_args
  from dvc.commands.data import CmdDataStatus
  from dvc.repo import Repo
  from dvc.repo.data import Status
  from tests.func.parsing.test_errors import escape_ansi
label_desc: Use image node_id 3 for calling a global function with example usage: test_json(dvc, mocker, capsys, mocked_status, args, to_omit) without return types