def METHOD_NAME(
    add_gcs_login, run_line
):
    # even though this test should bail out early, setup a full environment for it
    # to run within, ensuring that changes to the order of operations and
    # errors will not break it
    load_response_set(globus_sdk.GCSClient.create_user_credential).metadata
    meta = load_response_set("cli.collection_operations").metadata
    ep_id = meta["endpoint_id"]
    add_gcs_login(ep_id)
    json_body = json.dumps(["foo", "bar"])
    line = f"globus endpoint user-credential create from-json {ep_id} '{json_body}'"
    result = run_line(line, assert_exit_code=2)
    assert "User Credential JSON must be a JSON object" in result.stderr