{
 "version": "2.2",
 "instance": {
  "d810360dncsrs.htm": {
   "nsprefix": "jpmt2",
   "nsuri": "http://www.jpmorganfunds.com/20241010",
   "dts": {
    "inline": {
     "local": [
      "d810360dncsrs.htm"
     ]
    },
    "schema": {
     "local": [
      "jpmt2-20241010.xsd"
     ],
     "remote": [
      "http://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd",
      "http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd",
      "http://www.xbrl.org/2003/xl-2003-12-31.xsd",
      "http://www.xbrl.org/2003/xlink-2003-12-31.xsd",
      "http://www.xbrl.org/2005/xbrldt-2005.xsd",
      "http://www.xbrl.org/2006/ref-2006-02-27.xsd",
      "http://www.xbrl.org/lrr/arcrole/deprecated-2009-12-16.xsd",
      "http://www.xbrl.org/lrr/role/deprecated-2009-12-16.xsd",
      "http://www.xbrl.org/lrr/role/negated-2009-12-16.xsd",
      "http://www.xbrl.org/lrr/role/reference-2009-12-16.xsd",
      "https://www.xbrl.org/2020/extensible-enumerations-2.0.xsd",
      "https://www.xbrl.org/dtr/type/2020-01-21/types.xsd",
      "https://www.xbrl.org/dtr/type/2022-03-31/types.xsd",
      "https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd",
      "https://xbrl.fasb.org/srt/2023/elts/srt-roles-2023.xsd",
      "https://xbrl.fasb.org/srt/2023/elts/srt-types-2023.xsd",
      "https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd",
      "https://xbrl.fasb.org/us-gaap/2023/elts/us-roles-2023.xsd",
      "https://xbrl.fasb.org/us-gaap/2023/elts/us-types-2023.xsd",
      "https://xbrl.sec.gov/country/2023/country-2023.xsd",
      "https://xbrl.sec.gov/country/2023/country-2023_def.xsd",
      "https://xbrl.sec.gov/dei/2023/dei-2023.xsd",
      "https://xbrl.sec.gov/oef/2023/oef-2023.xsd",
      "https://xbrl.sec.gov/oef/2023/oef-2023_lab.xsd",
      "https://xbrl.sec.gov/oef/2023/oef-sr-2023.xsd"
     ]
    }
   },
   "keyStandard": 23,
   "keyCustom": 0,
   "axisStandard": 4,
   "axisCustom": 0,
   "memberStandard": 9,
   "memberCustom": 96,
   "hidden": {
    "total": 333,
    "http://xbrl.sec.gov/oef/2023": 330,
    "http://xbrl.sec.gov/dei/2023": 3
   },
   "contextCount": 689,
   "entityCount": 1,
   "segmentCount": 105,
   "elementCount": 227,
   "unitCount": 6,
   "baseTaxonomies": {
    "http://xbrl.sec.gov/oef/2023": 1648,
    "http://fasb.org/us-gaap/2023": 127,
    "http://xbrl.sec.gov/dei/2023": 85
   },
   "report": {
    "R1": {
     "role": "http://xbrl.sec.gov/oef/role/NcsrCover",
     "longName": "030000 - Disclosure - Form N-CSR Cover",
     "shortName": "Form N-CSR Cover",
     "isDefault": "true",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Cover",
     "order": "1",
     "firstAnchor": {
      "contextRef": "DefaultContext",
      "name": "dei:EntityRegistrantName",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d810360dncsrs.htm",
      "first": true
     },
     "uniqueAnchor": null
    },
    "R2": {
     "role": "http://xbrl.sec.gov/oef/role/ShareholderReport",
     "longName": "030001 - Disclosure - Shareholder Report",
     "shortName": "Shareholder Report",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "2",
     "firstAnchor": {
      "contextRef": "DefaultContext",
      "name": "dei:EntityRegistrantName",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d810360dncsrs.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "D20240301_20240831_C000009621Member",
      "name": "oef:FundName",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d810360dncsrs.htm",
      "unique": true
     }
    },
    "R3": {
     "role": "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
     "longName": "040020 - Disclosure - Shareholder Report, Holdings (Details)",
     "shortName": "Shareholder Report, Holdings (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "3",
     "firstAnchor": {
      "contextRef": "TI20240831_C000212348Member_TwoTo7CalendarDaysMember",
      "name": "oef:PctOfTotalInv",
      "unitRef": "pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "4",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d810360dncsrs.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "TI20240831_C000212348Member_TwoTo7CalendarDaysMember",
      "name": "oef:PctOfTotalInv",
      "unitRef": "pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "4",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d810360dncsrs.htm",
      "first": true,
      "unique": true
     }
    }
   },
   "tag": {
    "jpmt2_AAAMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "AAAMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "AAA [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_AAMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "AAMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "AA [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_AMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "AMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "A [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "oef_AccountValueLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "AccountValueLineItems",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Account Value [Line Items]"
       }
      }
     },
     "auth_ref": [
      "r46"
     ]
    },
    "oef_AccountValueTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "AccountValueTable",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Account Value [Table]"
       }
      }
     },
     "auth_ref": [
      "r46"
     ]
    },
    "oef_AccountValueTableAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "AccountValueTableAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Account Value Table [Abstract]"
       }
      }
     },
     "auth_ref": [
      "r46"
     ]
    },
    "oef_AccountantChngDate": {
     "xbrltype": "dateItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "AccountantChngDate",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accountant Change Date"
       }
      }
     },
     "auth_ref": [
      "r70"
     ]
    },
    "oef_AccountantChngDisagreementsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "AccountantChngDisagreementsTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accountant Change Disagreements [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r71"
     ]
    },
    "oef_AccountantChngStatementTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "AccountantChngStatementTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accountant Change Statement [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r70"
     ]
    },
    "oef_AcctVal": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "AcctVal",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Account Value"
       }
      }
     },
     "auth_ref": [
      "r47"
     ]
    },
    "oef_AdditionalIndexAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "AdditionalIndexAxis",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additional Index [Axis]"
       }
      }
     },
     "auth_ref": [
      "r46"
     ]
    },
    "oef_AdditionalIndexDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "AdditionalIndexDomain",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additional Index [Domain]"
       }
      }
     },
     "auth_ref": [
      "r46"
     ]
    },
    "oef_AddlFundStatisticsSignificanceOrLimitsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "AddlFundStatisticsSignificanceOrLimitsTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additional Fund Statistics Significance or Limits [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r60"
     ]
    },
    "oef_AddlFundStatisticsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "AddlFundStatisticsTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additional Fund Statistics [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r59"
     ]
    },
    "oef_AddlInfoEmail": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "AddlInfoEmail",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additional Information Email"
       }
      }
     },
     "auth_ref": [
      "r38"
     ]
    },
    "oef_AddlInfoPhoneNumber": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "AddlInfoPhoneNumber",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additional Information Phone Number"
       }
      }
     },
     "auth_ref": [
      "r38"
     ]
    },
    "oef_AddlInfoTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "AddlInfoTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additional Information [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r36"
     ]
    },
    "oef_AddlInfoWebsite": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "AddlInfoWebsite",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additional Information Website"
       }
      }
     },
     "auth_ref": [
      "r38"
     ]
    },
    "oef_AdvisoryFeesPaidAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "AdvisoryFeesPaidAmt",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Advisory Fees Paid, Amount"
       }
      }
     },
     "auth_ref": [
      "r59"
     ]
    },
    "dei_AmendmentDescription": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "AmendmentDescription",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/NcsrCover",
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Amendment Description",
        "documentation": "Description of changes contained within amended document."
       }
      }
     },
     "auth_ref": []
    },
    "dei_AmendmentFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "AmendmentFlag",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/NcsrCover",
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Amendment Flag",
        "documentation": "Boolean flag that is true when the XBRL content amends previously-filed or accepted submission."
       }
      }
     },
     "auth_ref": []
    },
    "oef_AnnlOrSemiAnnlStatementTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "AnnlOrSemiAnnlStatementTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Annual or Semi-Annual Statement [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r35"
     ]
    },
    "us-gaap_AssetBackedSecuritiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AssetBackedSecuritiesMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Asset-Backed Securities [Member]",
        "documentation": "Securities that are primarily serviced by the cash flows of a discrete pool of receivables or other financial assets for example, but not limited to, credit card receivables, car loans, recreational vehicle loans, and mobile home loans."
       }
      }
     },
     "auth_ref": [
      "r21",
      "r79",
      "r81",
      "r82"
     ]
    },
    "us-gaap_AssetsNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AssetsNet",
     "crdr": "debit",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Assets",
        "documentation": "Amount of net assets (liabilities)."
       }
      }
     },
     "auth_ref": [
      "r0"
     ]
    },
    "oef_AvgAnnlRtrPct": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "AvgAnnlRtrPct",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Average Annual Return, Percent"
       }
      }
     },
     "auth_ref": [
      "r53"
     ]
    },
    "oef_AvgAnnlRtrTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "AvgAnnlRtrTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Average Annual Return [Table Text Block]"
       }
      }
     },
     "auth_ref": [
      "r53"
     ]
    },
    "jpmt2_BBBMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "BBBMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "BBB [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_BBMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "BBMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "BB [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "oef_BroadBasedIndexAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "BroadBasedIndexAxis",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Broad Based Index [Axis]"
       }
      }
     },
     "auth_ref": [
      "r46"
     ]
    },
    "oef_BroadBasedIndexDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "BroadBasedIndexDomain",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Broad Based Index [Domain]"
       }
      }
     },
     "auth_ref": [
      "r46"
     ]
    },
    "jpmt2_C000009615Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000009615Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000009615 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000009616Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000009616Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000009616 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000009618Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000009618Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000009618 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000009619Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000009619Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000009619 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000009620Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000009620Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000009620 [Member]",
        "terseLabel": "Class I"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000009621Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000009621Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000009621 [Member]",
        "terseLabel": "Class A"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000009623Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000009623Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000009623 [Member]",
        "terseLabel": "Class C"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000009624Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000009624Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000009624 [Member]",
        "terseLabel": "Class R6"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000009631Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000009631Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000009631 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000009632Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000009632Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000009632 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000009633Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000009633Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000009633 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000009635Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000009635Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000009635 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000009636Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000009636Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000009636 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000009637Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000009637Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000009637 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000009639Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000009639Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000009639 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000009640Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000009640Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000009640 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000009646Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000009646Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000009646 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000009647Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000009647Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000009647 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000009648Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000009648Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000009648 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000009653Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000009653Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000009653 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000009654Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000009654Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000009654 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000009656Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000009656Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000009656 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000009657Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000009657Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000009657 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000009692Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000009692Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000009692 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000009694Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000009694Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000009694 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000009695Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000009695Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000009695 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000009696Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000009696Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000009696 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000009697Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000009697Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000009697 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000010918Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000010918Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000010918 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000010922Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000010922Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000010922 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000010923Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000010923Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000010923 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000010924Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000010924Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000010924 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000010925Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000010925Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000010925 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000010926Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000010926Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000010926 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000010927Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000010927Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000010927 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000010928Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000010928Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000010928 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000010929Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000010929Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000010929 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000010930Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000010930Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000010930 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000010932Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000010932Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000010932 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000010933Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000010933Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000010933 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000010940Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000010940Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000010940 [Member]",
        "terseLabel": "Institutional Class"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000010941Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000010941Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000010941 [Member]",
        "terseLabel": "Capital"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000010942Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000010942Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000010942 [Member]",
        "terseLabel": "Morgan"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000010943Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000010943Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000010943 [Member]",
        "terseLabel": "Premier"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000010944Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000010944Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000010944 [Member]",
        "terseLabel": "Reserve"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000010945Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000010945Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000010945 [Member]",
        "terseLabel": "Agency"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000010946Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000010946Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000010946 [Member]",
        "terseLabel": "Service"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000010947Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000010947Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000010947 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000010950Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000010950Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000010950 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000010951Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000010951Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000010951 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000010952Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000010952Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000010952 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000010953Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000010953Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000010953 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000010954Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000010954Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000010954 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000033520Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000033520Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000033520 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000033521Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000033521Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000033521 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000070638Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000070638Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000070638 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000070639Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000070639Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000070639 [Member]",
        "terseLabel": "Class R2"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000070640Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000070640Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000070640 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000070641Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000070641Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000070641 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000077258Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000077258Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000077258 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000078417Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000078417Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000078417 [Member]",
        "terseLabel": "Investor"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000115393Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000115393Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000115393 [Member]",
        "terseLabel": "IM"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000115394Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000115394Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000115394 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000116212Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000116212Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000116212 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000165408Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000165408Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000165408 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000171356Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000171356Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000171356 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000171357Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000171357Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000171357 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000173234Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000173234Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000173234 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000173235Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000173235Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000173235 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000173236Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000173236Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000173236 [Member]",
        "terseLabel": "Class R3"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000173237Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000173237Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000173237 [Member]",
        "terseLabel": "Class R4"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000173238Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000173238Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000173238 [Member]",
        "terseLabel": "Class R5"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000192734Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000192734Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000192734 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000192735Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000192735Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000192735 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000205207Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000205207Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000205207 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000205208Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000205208Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000205208 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000212348Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000212348Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000212348 [Member]",
        "terseLabel": "Academy"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000222399Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000222399Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000222399 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000225258Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000225258Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000225258 [Member]",
        "terseLabel": "Empower"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_C000225259Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "C000225259Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000225259 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_CCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "CCMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "CC [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "oef_ClassAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "ClassAxis",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class [Axis]"
       }
      }
     },
     "auth_ref": [
      "r33"
     ]
    },
    "oef_ClassName": {
     "xbrltype": "securityTitleItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "ClassName",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class Name"
       }
      }
     },
     "auth_ref": [
      "r38"
     ]
    },
    "us-gaap_CollateralizedMortgageObligationsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CollateralizedMortgageObligationsMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Collateralized Mortgage Obligations [Member]",
        "documentation": "The category includes multiclass, pay-through securitizations collateralized by mortgages secured by assets, such as automobiles and boats, which are generally structured so that the collections of principal and interest due from the underlying debtors are paid to the holders of the CMO."
       }
      }
     },
     "auth_ref": [
      "r1"
     ]
    },
    "us-gaap_CommercialMortgageBackedSecuritiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CommercialMortgageBackedSecuritiesMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Commercial Mortgage-Backed Securities [Member]",
        "documentation": "Securities collateralized by commercial real estate mortgage loans."
       }
      }
     },
     "auth_ref": [
      "r79",
      "r81",
      "r82",
      "r84"
     ]
    },
    "us-gaap_CommonStockMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CommonStockMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Common Stock [Member]",
        "documentation": "Stock that is subordinate to all other stock of the issuer."
       }
      }
     },
     "auth_ref": [
      "r24",
      "r25",
      "r26",
      "r27",
      "r28",
      "r29",
      "r30",
      "r75",
      "r76",
      "r86",
      "r89",
      "r91"
     ]
    },
    "us-gaap_CorporateBondSecuritiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CorporateBondSecuritiesMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Corporate Bond Securities [Member]",
        "documentation": "This category includes information about long-term debt securities that are issued by either a domestic or foreign corporate business entity with a date certain promise of repayment and a return to the holder for the time value of money (for example, variable or fixed interest, original issue discount)."
       }
      }
     },
     "auth_ref": []
    },
    "dei_CoverAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "CoverAbstract",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Cover page."
       }
      }
     },
     "auth_ref": []
    },
    "oef_CreditQualityAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "CreditQualityAxis",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Credit Quality [Axis]"
       }
      }
     },
     "auth_ref": [
      "r61"
     ]
    },
    "oef_CreditQualityDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "CreditQualityDomain",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Credit Quality [Domain]"
       }
      }
     },
     "auth_ref": [
      "r61"
     ]
    },
    "oef_CreditQualityExplanationTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "CreditQualityExplanationTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Credit Quality Explanation [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r61"
     ]
    },
    "srt_CreditRatingAMBestAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "CreditRatingAMBestAxis",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "auth_ref": [
      "r20",
      "r77",
      "r83",
      "r85"
     ]
    },
    "srt_CreditRatingAMBestDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "CreditRatingAMBestDomain",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "auth_ref": []
    },
    "srt_CreditRatingFitchAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "CreditRatingFitchAxis",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "auth_ref": [
      "r20",
      "r77",
      "r85"
     ]
    },
    "srt_CreditRatingMoodysAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "CreditRatingMoodysAxis",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "auth_ref": [
      "r20",
      "r77",
      "r83",
      "r85"
     ]
    },
    "srt_CreditRatingStandardPoorsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "CreditRatingStandardPoorsAxis",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "auth_ref": [
      "r20",
      "r77",
      "r83",
      "r85"
     ]
    },
    "oef_CreditRatingsSelectionTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "CreditRatingsSelectionTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Credit Ratings Selection [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r61"
     ]
    },
    "oef_DistOfCapitalTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "DistOfCapitalTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Distribution of Capital [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r55"
     ]
    },
    "dei_DocumentPeriodEndDate": {
     "xbrltype": "dateItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentPeriodEndDate",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/NcsrCover",
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Period End Date",
        "documentation": "For the EDGAR submission types of Form 8-K: the date of the report, the date of the earliest event reported; for the EDGAR submission types of Form N-1A: the filing date; for all other submission types: the end of the reporting or transition period.  The format of the date is YYYY-MM-DD."
       }
      }
     },
     "auth_ref": []
    },
    "dei_DocumentType": {
     "xbrltype": "submissionTypeItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentType",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/NcsrCover",
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Type",
        "documentation": "The type of document being provided (such as 10-K, 10-Q, 485BPOS, etc). The document type is limited to the same value as the supporting SEC submission type, or the word 'Other'."
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_EightTo30CalendarDaysMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "EightTo30CalendarDaysMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Eight To 30 calendar days [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityCentralIndexKey": {
     "xbrltype": "centralIndexKeyItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityCentralIndexKey",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/NcsrCover",
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Central Index Key",
        "documentation": "A unique 10-digit SEC-issued value to identify entities that have filed disclosures with the SEC. It is commonly abbreviated as CIK."
       }
      }
     },
     "auth_ref": [
      "r31"
     ]
    },
    "dei_EntityInvCompanyType": {
     "xbrltype": "invCompanyType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityInvCompanyType",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/NcsrCover",
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Investment Company Type",
        "documentation": "One of: N-1A (Mutual Fund), N-1 (Open-End Separate Account with No Variable Annuities), N-2 (Closed-End Investment Company), N-3 (Separate Account Registered as Open-End Management Investment Company), N-4 (Variable Annuity UIT Separate Account), N-5 (Small Business Investment Company), N-6 (Variable Life UIT Separate Account), S-1 or S-3 (Face Amount Certificate Company), S-6 (UIT, Non-Insurance Product)."
       }
      }
     },
     "auth_ref": [
      "r74"
     ]
    },
    "dei_EntityRegistrantName": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityRegistrantName",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/NcsrCover",
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Registrant Name",
        "documentation": "The exact name of the entity filing the report as specified in its charter, which is required by forms filed with the SEC."
       }
      }
     },
     "auth_ref": [
      "r31"
     ]
    },
    "oef_EtfDiscountNumDays": {
     "xbrltype": "integerItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "EtfDiscountNumDays",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "ETF Discount, Number of Days"
       }
      }
     },
     "auth_ref": [
      "r56"
     ]
    },
    "oef_EtfPastPerfTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "EtfPastPerfTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "ETF Past Performance [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r58"
     ]
    },
    "oef_EtfPremiumDiscountTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "EtfPremiumDiscountTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "ETF Premium Discount [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r56"
     ]
    },
    "oef_EtfPremiumNumDays": {
     "xbrltype": "integerItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "EtfPremiumNumDays",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "ETF Premium, Number of Days"
       }
      }
     },
     "auth_ref": [
      "r56"
     ]
    },
    "oef_EtfPurchaseExplanationTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "EtfPurchaseExplanationTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "ETF Purchase Explanation [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r57"
     ]
    },
    "oef_ExpenseRatioPct": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "ExpenseRatioPct",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Expense Ratio, Percent"
       }
      }
     },
     "auth_ref": [
      "r41"
     ]
    },
    "oef_ExpensesExclExtraordinaryExpensesPct": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "ExpensesExclExtraordinaryExpensesPct",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Expenses Excluding Extraordinary Expenses, Percent"
       }
      }
     },
     "auth_ref": [
      "r44"
     ]
    },
    "oef_ExpensesPaidAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "ExpensesPaidAmt",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Expenses Paid, Amount"
       }
      }
     },
     "auth_ref": [
      "r40"
     ]
    },
    "oef_ExpensesRepresentBothMasterAndFeeder": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "ExpensesRepresentBothMasterAndFeeder",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Expenses Represent Both Master and Feeder [Text]"
       }
      }
     },
     "auth_ref": [
      "r42",
      "r72"
     ]
    },
    "oef_ExpensesShortPeriodFnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "ExpensesShortPeriodFnTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Expenses Short Period Footnote [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r43"
     ]
    },
    "oef_ExpensesTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "ExpensesTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Expenses [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r39"
     ]
    },
    "oef_ExposureBasisExplanationTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "ExposureBasisExplanationTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Exposure Basis Explanation [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r61"
     ]
    },
    "srt_ExternalCreditRatingFitchMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "ExternalCreditRatingFitchMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "auth_ref": []
    },
    "srt_ExternalCreditRatingMoodysMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "ExternalCreditRatingMoodysMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "auth_ref": []
    },
    "srt_ExternalCreditRatingStandardPoorsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "ExternalCreditRatingStandardPoorsMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "auth_ref": []
    },
    "oef_ExtraordinaryExpensesFnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "ExtraordinaryExpensesFnTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Extraordinary Expenses Footnote [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r44"
     ]
    },
    "oef_FactorsAffectingPerfTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "FactorsAffectingPerfTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Factors Affecting Performance [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r45"
     ]
    },
    "jpmt2_ForeignGovernmentSecuritiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "ForeignGovernmentSecuritiesMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Foreign Government Securities [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "oef_FundName": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "FundName",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fund Name"
       }
      }
     },
     "auth_ref": [
      "r34"
     ]
    },
    "oef_GeographicRegionAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "GeographicRegionAxis",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Geographic Region [Axis]"
       }
      }
     },
     "auth_ref": [
      "r61"
     ]
    },
    "oef_GeographicRegionDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "GeographicRegionDomain",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Geographic Region [Domain]"
       }
      }
     },
     "auth_ref": [
      "r61"
     ]
    },
    "oef_HoldingsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "HoldingsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Holdings [Abstract]"
       }
      }
     },
     "auth_ref": [
      "r61"
     ]
    },
    "oef_HoldingsCount": {
     "xbrltype": "integerItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "HoldingsCount",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Holdings Count"
       }
      }
     },
     "auth_ref": [
      "r59"
     ]
    },
    "oef_HoldingsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "HoldingsLineItems",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Holdings [Line Items]"
       }
      }
     },
     "auth_ref": [
      "r61"
     ]
    },
    "oef_HoldingsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "HoldingsTable",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Holdings [Table]"
       }
      }
     },
     "auth_ref": [
      "r61"
     ]
    },
    "oef_HoldingsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "HoldingsTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Holdings [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r61"
     ]
    },
    "oef_InabilityToMeetDistLevelTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "InabilityToMeetDistLevelTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Inability to Meet Distribution Level [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r55"
     ]
    },
    "oef_IndustrySectorAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "IndustrySectorAxis",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Industry Sector [Axis]"
       }
      }
     },
     "auth_ref": [
      "r61"
     ]
    },
    "oef_IndustrySectorDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "IndustrySectorDomain",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Industry Sector [Domain]"
       }
      }
     },
     "auth_ref": [
      "r61"
     ]
    },
    "us-gaap_InvestmentCompanyPortfolioTurnover": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InvestmentCompanyPortfolioTurnover",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Company Portfolio Turnover",
        "documentation": "Percentage of lesser of purchase or sale of portfolio securities to average value of portfolio securities owned."
       }
      }
     },
     "auth_ref": [
      "r90"
     ]
    },
    "us-gaap_InvestmentTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InvestmentTypeAxis",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Type [Axis]",
        "documentation": "Information by type of investments."
       }
      }
     },
     "auth_ref": [
      "r2",
      "r3",
      "r4",
      "r5",
      "r6",
      "r7",
      "r8",
      "r9",
      "r10",
      "r11",
      "r12",
      "r13",
      "r14",
      "r15",
      "r16",
      "r17",
      "r18",
      "r26"
     ]
    },
    "us-gaap_InvestmentTypeCategorizationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InvestmentTypeCategorizationMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Asset obtained to generate income or appreciate in value."
       }
      }
     },
     "auth_ref": [
      "r2",
      "r3",
      "r4",
      "r5",
      "r6",
      "r7",
      "r8",
      "r9",
      "r10",
      "r11",
      "r12",
      "r13",
      "r14",
      "r15",
      "r16",
      "r17",
      "r18",
      "r26"
     ]
    },
    "oef_LargestHoldingAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "LargestHoldingAxis",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Largest Holding [Axis]"
       }
      }
     },
     "auth_ref": [
      "r61"
     ]
    },
    "oef_LargestHoldingsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "LargestHoldingsDomain",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Largest Holdings [Domain]"
       }
      }
     },
     "auth_ref": [
      "r61"
     ]
    },
    "oef_LargestHoldingsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "LargestHoldingsTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Largest Holdings [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r61"
     ]
    },
    "oef_LineGraphAndTableMeasureName": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "LineGraphAndTableMeasureName",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Line Graph and Table Measure Name"
       }
      }
     },
     "auth_ref": [
      "r47"
     ]
    },
    "oef_LineGraphTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "LineGraphTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Line Graph [Table Text Block]"
       }
      }
     },
     "auth_ref": [
      "r46"
     ]
    },
    "us-gaap_LoanParticipationsAndAssignmentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LoanParticipationsAndAssignmentsMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Loan Participations and Assignments [Member]",
        "documentation": "Investments consisting of the rights in and risks associated with loans shared among a number of (unrelated) parties which may or may not include an assignment of the underlying instrument."
       }
      }
     },
     "auth_ref": []
    },
    "oef_MaterialChngDate": {
     "xbrltype": "dateItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "MaterialChngDate",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Material Change Date"
       }
      }
     },
     "auth_ref": [
      "r51"
     ]
    },
    "oef_MaterialChngDescriptionTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "MaterialChngDescriptionTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Material Change Description [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r51"
     ]
    },
    "oef_MaterialFundChngAdviserTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "MaterialFundChngAdviserTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Material Fund Change Adviser [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r68"
     ]
    },
    "oef_MaterialFundChngExpensesTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "MaterialFundChngExpensesTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Material Fund Change Expenses [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r65"
     ]
    },
    "oef_MaterialFundChngNameTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "MaterialFundChngNameTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Material Fund Change Name [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r63"
     ]
    },
    "oef_MaterialFundChngNoticeTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "MaterialFundChngNoticeTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Material Fund Change Notice [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r37"
     ]
    },
    "oef_MaterialFundChngObjectivesTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "MaterialFundChngObjectivesTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Material Fund Change Objectives [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r64"
     ]
    },
    "oef_MaterialFundChngRisksChngTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "MaterialFundChngRisksChngTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Material Fund Change Risks Change [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r67"
     ]
    },
    "oef_MaterialFundChngStrategiesTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "MaterialFundChngStrategiesTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Material Fund Change Strategies [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r66"
     ]
    },
    "oef_MaterialFundChngTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "MaterialFundChngTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Material Fund Change [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r62"
     ]
    },
    "oef_MaturityAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "MaturityAxis",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Maturity [Axis]"
       }
      }
     },
     "auth_ref": [
      "r61"
     ]
    },
    "oef_MaturityDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "MaturityDomain",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Maturity [Domain]"
       }
      }
     },
     "auth_ref": [
      "r61"
     ]
    },
    "us-gaap_MortgageBackedSecuritiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "MortgageBackedSecuritiesMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Collateralized Mortgage-Backed Securities [Member]",
        "documentation": "Securities collateralized by mortgage loans."
       }
      }
     },
     "auth_ref": [
      "r21",
      "r22",
      "r23",
      "r78",
      "r79",
      "r80",
      "r81",
      "r82",
      "r88"
     ]
    },
    "jpmt2_NRMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "NRMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "NR [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_NinetyOneTo180CalendarDaysMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "NinetyOneTo180CalendarDaysMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Ninety One To 180 calendar days [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "oef_NoDeductionOfTaxesTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "NoDeductionOfTaxesTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "No Deduction of Taxes [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r48"
     ]
    },
    "dei_NoTradingSymbolFlag": {
     "xbrltype": "trueItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "NoTradingSymbolFlag",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "No Trading Symbol Flag",
        "documentation": "Boolean flag that is true only for a security having no trading symbol."
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_OneHundredEightyOneCalendarDaysMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "OneHundredEightyOneCalendarDaysMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "One Hundred Eighty One calendar days [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "oef_OtherCategory1Axis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "OtherCategory1Axis",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Category 1 [Axis]"
       }
      }
     },
     "auth_ref": [
      "r61"
     ]
    },
    "oef_OtherCategory1Domain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "OtherCategory1Domain",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Category 1 [Domain]"
       }
      }
     },
     "auth_ref": [
      "r61"
     ]
    },
    "oef_OtherCategory2Axis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "OtherCategory2Axis",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Category 2 [Axis]"
       }
      }
     },
     "auth_ref": [
      "r61"
     ]
    },
    "oef_OtherCategory2Domain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "OtherCategory2Domain",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Category 2 [Domain]"
       }
      }
     },
     "auth_ref": [
      "r61"
     ]
    },
    "jpmt2_OthersEachLessThan10Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "OthersEachLessThan10Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Others each less than 1 0 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "oef_PctOfNav": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "PctOfNav",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Percent of Net Asset Value"
       }
      }
     },
     "auth_ref": [
      "r61"
     ]
    },
    "oef_PctOfNetLongExposure": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "PctOfNetLongExposure",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Percent of Net Long Exposure"
       }
      }
     },
     "auth_ref": [
      "r61"
     ]
    },
    "oef_PctOfNetShortExposure": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "PctOfNetShortExposure",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Percent of Net Short Exposure"
       }
      }
     },
     "auth_ref": [
      "r61"
     ]
    },
    "oef_PctOfTotalInv": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "PctOfTotalInv",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Percent of Total Investments"
       }
      }
     },
     "auth_ref": [
      "r61"
     ]
    },
    "oef_PctOfTotalLongExposure": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "PctOfTotalLongExposure",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Percent of Total Long Exposure"
       }
      }
     },
     "auth_ref": [
      "r61"
     ]
    },
    "oef_PctOfTotalShortExposure": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "PctOfTotalShortExposure",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Percent of Total Short Exposure"
       }
      }
     },
     "auth_ref": [
      "r61"
     ]
    },
    "oef_PerfInceptionDate": {
     "xbrltype": "dateItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "PerfInceptionDate",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Performance Inception Date"
       }
      }
     },
     "auth_ref": [
      "r47"
     ]
    },
    "oef_PerfTableMarketIndexChngdTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "PerfTableMarketIndexChngdTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Performance Table Market Index Changed [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r54"
     ]
    },
    "oef_PerformancePastDoesNotIndicateFuture": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "PerformancePastDoesNotIndicateFuture",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Performance Past Does Not Indicate Future [Text]"
       }
      }
     },
     "auth_ref": [
      "r49",
      "r73"
     ]
    },
    "oef_PreviousInvestmentAdviserTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "PreviousInvestmentAdviserTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Previous Investment Adviser [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r50"
     ]
    },
    "oef_PriorMarketIndexComparisonTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "PriorMarketIndexComparisonTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Prior Market Index Comparison [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r54"
     ]
    },
    "oef_SalesLoadAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "SalesLoadAxis",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Sales Load [Axis]"
       }
      }
     },
     "auth_ref": [
      "r53"
     ]
    },
    "dei_SecurityExchangeName": {
     "xbrltype": "edgarExchangeCodeItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "SecurityExchangeName",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Security Exchange Name",
        "terseLabel": "Exchange",
        "documentation": "Name of the Exchange on which a security is registered."
       }
      }
     },
     "auth_ref": [
      "r32"
     ]
    },
    "oef_ShareClassDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "ShareClassDomain",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share Classes"
       }
      }
     },
     "auth_ref": [
      "r33"
     ]
    },
    "oef_ShareholderReportAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "ShareholderReportAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Shareholder Report [Abstract]"
       }
      }
     },
     "auth_ref": [
      "r53"
     ]
    },
    "oef_ShareholderReportAnnualOrSemiAnnual": {
     "xbrltype": "shareholderReportTypeItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "ShareholderReportAnnualOrSemiAnnual",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Shareholder Report Annual or Semi-Annual"
       }
      }
     },
     "auth_ref": [
      "r35"
     ]
    },
    "oef_ShareholderReportLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "ShareholderReportLineItems",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/NcsrCover",
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Shareholder Report [Line Items]"
       }
      }
     },
     "auth_ref": [
      "r53"
     ]
    },
    "oef_ShareholderReportTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "ShareholderReportTable",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/NcsrCover",
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Shareholder Report [Table]"
       }
      }
     },
     "auth_ref": [
      "r53"
     ]
    },
    "us-gaap_ShortTermInvestmentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShortTermInvestmentsMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Short-Term Investments [Member]",
        "documentation": "Investments which are not otherwise included in another category or item that the entity has the intent to sell or dispose of within one year from the date of the balance sheet."
       }
      }
     },
     "auth_ref": [
      "r16",
      "r17",
      "r18",
      "r19"
     ]
    },
    "jpmt2_SixtyOneTo90CalendarDaysMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "SixtyOneTo90CalendarDaysMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Sixty One To 90 calendar days [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "oef_SummaryOfChngLegendTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "SummaryOfChngLegendTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Summary of Change Legend [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r69"
     ]
    },
    "jpmt2_ThirtyOneTo60CalendarDaysMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "ThirtyOneTo60CalendarDaysMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Thirty One To 60 calendar days [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "dei_TradingSymbol": {
     "xbrltype": "tradingSymbolItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "TradingSymbol",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Symbol",
        "terseLabel": "Ticker",
        "documentation": "Trading symbol of an instrument as listed on an exchange."
       }
      }
     },
     "auth_ref": []
    },
    "jpmt2_TwoTo7CalendarDaysMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "TwoTo7CalendarDaysMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Two To 7 calendar days [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_USGovernmentCorporationsAndAgenciesSecuritiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "USGovernmentCorporationsAndAgenciesSecuritiesMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "US Government Corporations and Agencies Securities [Member]",
        "documentation": "This category includes information about debt issued by US Government Corporations and Agencies. Investments in such US Government Corporations may include debt securities issued by the Government National Mortgage Association (Ginnie Mae) and by the Federal National Mortgage Association (Fannie Mae) and the Federal Home Loan Mortgage Corporation (Freddie Mac)."
       }
      }
     },
     "auth_ref": [
      "r87"
     ]
    },
    "jpmt2_USTreasuryObligationsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.jpmorganfunds.com/20241010",
     "localname": "USTreasuryObligationsMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "U S Treasury Obligations [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "oef_UpdPerfInfoLocationTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "UpdPerfInfoLocationTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Updated Performance Information Location [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r52"
     ]
    },
    "oef_UpdProspectusEmailAddress": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "UpdProspectusEmailAddress",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Updated Prospectus Email Address"
       }
      }
     },
     "auth_ref": [
      "r69"
     ]
    },
    "oef_UpdProspectusPhoneNumber": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "UpdProspectusPhoneNumber",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Updated Prospectus Phone Number"
       }
      }
     },
     "auth_ref": [
      "r69"
     ]
    },
    "oef_UpdProspectusWebAddress": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "UpdProspectusWebAddress",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Updated Prospectus Web Address"
       }
      }
     },
     "auth_ref": [
      "r69"
     ]
    },
    "oef_WithSalesLdMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "WithSalesLoadMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "With Sales Load [Member]"
       }
      }
     },
     "auth_ref": [
      "r53"
     ]
    },
    "oef_WithoutSalesLoadMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2023",
     "localname": "WithoutSalesLoadMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Without Sales Load [Member]"
       }
      }
     },
     "auth_ref": [
      "r53"
     ]
    }
   }
  }
 },
 "std_ref": {
  "r0": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "SubTopic": "30",
   "Topic": "205",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479910/205-30-50-1"
  },
  "r1": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "470",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "19",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481573/470-10-45-19"
  },
  "r2": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480524/946-210-50-1"
  },
  "r3": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480524/946-210-50-1"
  },
  "r4": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480524/946-210-50-1"
  },
  "r5": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480524/946-210-50-6"
  },
  "r6": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480524/946-210-50-6"
  },
  "r7": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-12(Column A)(Footnote 1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-1"
  },
  "r8": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-12(Column C)(Footnote 5))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-1"
  },
  "r9": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.12-12A(Column C)(Footnote 4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-2"
  },
  "r10": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.12-12B(Column A)(Footnote 7))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-3"
  },
  "r11": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.12-12B(Column C)(Footnote 2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-3"
  },
  "r12": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5D",
   "Subparagraph": "(SX 210.12-13D(Column B)(Footnote 2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-5D"
  },
  "r13": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5D",
   "Subparagraph": "(SX 210.12-13D(Column C)(Footnote 2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-5D"
  },
  "r14": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "6",
   "Subparagraph": "(SX 210.12-14(Column F)(Footnote 7))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-6"
  },
  "r15": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "7",
   "Subparagraph": "(SX 210.12-15(Column A))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-7"
  },
  "r16": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "7",
   "Subparagraph": "(SX 210.12-15(Column B))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-7"
  },
  "r17": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "7",
   "Subparagraph": "(SX 210.12-15(Column C))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-7"
  },
  "r18": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "7",
   "Subparagraph": "(SX 210.12-15(Column D))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-7"
  },
  "r19": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "7",
   "Subparagraph": "(SX 210.12-15(Column A))",
   "SubTopic": "320",
   "Topic": "946",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-7"
  },
  "r20": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "15",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479294/326-20-55-15"
  },
  "r21": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)(ii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r22": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)(iv)(01)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r23": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "17",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480482/715-20-55-17"
  },
  "r24": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480524/946-210-50-1"
  },
  "r25": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480524/946-210-50-6"
  },
  "r26": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480493/946-210-55-1"
  },
  "r27": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-12(Column A)(Footnote 2)(i))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-1"
  },
  "r28": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.12-12A(Column A)(Footnote 2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-2"
  },
  "r29": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.12-12B(Column A)(Footnote 1)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-3"
  },
  "r30": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "6",
   "Subparagraph": "(SX 210.12-14(Column A)(Footnote 2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-6"
  },
  "r31": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12",
   "Subsection": "b-2"
  },
  "r32": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12",
   "Subsection": "d1-1"
  },
  "r33": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "1",
   "Subsection": "a",
   "Paragraph": "1"
  },
  "r34": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "b",
   "Paragraph": "1"
  },
  "r35": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "b",
   "Paragraph": "3"
  },
  "r36": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "b",
   "Paragraph": "4"
  },
  "r37": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "b",
   "Paragraph": "5"
  },
  "r38": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "b",
   "Paragraph": "instruction",
   "Subparagraph": "2"
  },
  "r39": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "c"
  },
  "r40": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "c",
   "Paragraph": "ii"
  },
  "r41": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "c",
   "Paragraph": "iii"
  },
  "r42": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "c",
   "Paragraph": "instruction",
   "Sentence": "1",
   "Clause": "b"
  },
  "r43": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "c",
   "Paragraph": "instruction",
   "Subparagraph": "1",
   "Clause": "c"
  },
  "r44": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "c",
   "Paragraph": "instruction",
   "Subparagraph": "1",
   "Clause": "d"
  },
  "r45": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "d",
   "Paragraph": "1"
  },
  "r46": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "d",
   "Paragraph": "2"
  },
  "r47": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "d",
   "Paragraph": "2",
   "Subparagraph": "i"
  },
  "r48": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "d",
   "Paragraph": "2",
   "Subparagraph": "iii",
   "Clause": "B"
  },
  "r49": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "d",
   "Paragraph": "2",
   "Subparagraph": "iiii",
   "Clause": "A"
  },
  "r50": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "d",
   "Paragraph": "2",
   "Subparagraph": "instruction",
   "Clause": "12"
  },
  "r51": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "d",
   "Paragraph": "2",
   "Subparagraph": "instruction",
   "Clause": "14"
  },
  "r52": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "d",
   "Paragraph": "2",
   "Subparagraph": "instruction",
   "Clause": "15"
  },
  "r53": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "d",
   "Paragraph": "2",
   "Subparagraph": "instruction",
   "Clause": "7"
  },
  "r54": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "d",
   "Paragraph": "2",
   "Subparagraph": "instruction",
   "Clause": "8"
  },
  "r55": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "d",
   "Paragraph": "3"
  },
  "r56": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "d",
   "Paragraph": "4"
  },
  "r57": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "d",
   "Paragraph": "4",
   "Subparagraph": "instruction",
   "Clause": "3"
  },
  "r58": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "d",
   "Paragraph": "4",
   "Subparagraph": "instruction",
   "Clause": "4"
  },
  "r59": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "e"
  },
  "r60": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "e",
   "Paragraph": "instruction",
   "Subparagraph": "6"
  },
  "r61": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "f"
  },
  "r62": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "g"
  },
  "r63": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "g",
   "Paragraph": "1"
  },
  "r64": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "g",
   "Paragraph": "2"
  },
  "r65": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "g",
   "Paragraph": "3"
  },
  "r66": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "g",
   "Paragraph": "4"
  },
  "r67": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "g",
   "Paragraph": "5"
  },
  "r68": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "g",
   "Paragraph": "6"
  },
  "r69": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "g",
   "Paragraph": "instruction",
   "Subparagraph": "2"
  },
  "r70": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "h",
   "Paragraph": "1"
  },
  "r71": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "h",
   "Paragraph": "2"
  },
  "r72": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "3",
   "Subsection": "instruction",
   "Paragraph": "1",
   "Subparagraph": "d",
   "Sentence": "i"
  },
  "r73": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "4",
   "Subsection": "b",
   "Paragraph": "2",
   "Subparagraph": "i"
  },
  "r74": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-T",
   "Number": "232",
   "Section": "313"
  },
  "r75": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "23",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483421/250-10-45-23"
  },
  "r76": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "24",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483421/250-10-45-24"
  },
  "r77": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "29",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481962/310-10-50-29"
  },
  "r78": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-2"
  },
  "r79": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-3"
  },
  "r80": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-5"
  },
  "r81": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-5"
  },
  "r82": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5B",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-5B"
  },
  "r83": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479319/326-20-50-5"
  },
  "r84": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)(ii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r85": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4K",
   "Subparagraph": "(a)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-4K"
  },
  "r86": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "815",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(e)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480175/815-40-65-1"
  },
  "r87": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "942",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480832/942-320-50-2"
  },
  "r88": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "80",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480109/944-80-50-1"
  },
  "r89": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "4",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480767/946-205-45-4"
  },
  "r90": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "27",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480737/946-205-50-27"
  },
  "r91": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.6-09(4)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-3"
  }
 }
}
