Salesforce JSON错误:|致命|错误| System.JSONException:原语的值非法

Salesforce JSON错误:|致命|错误| System.JSONException:原语的值非法,json,salesforce,Json,Salesforce,我试图运行此代码,但在Apex Salesforce控制台中出现此错误 *|致命错误| System.JSONException:原语的值非法* 我在这里测试了JSON字符串的有效性 这里我再次粘贴JSON字符串 { "content":{ "MTType":"text/html", "MTTitle":"Test Builder", "body":[ " <div id=\"section_1\" class=\"mt-page

我试图运行此代码,但在Apex Salesforce控制台中出现此错误

*|致命错误| System.JSONException:原语的值非法*

我在这里测试了JSON字符串的有效性

这里我再次粘贴JSON字符串

{
   "content":{
      "MTType":"text/html",
      "MTTitle":"Test Builder",
      "body":[
         " <div id=\"section_1\" class=\"mt-page-section\"><span id=\"Overview\"></span><h2 class=\"editable\">Overview</h2>  <p>You can use Test Builder to create custom objective&#8208;based tests using objectives from the Odyssey curriculum, your standard state objectives, or your own custom district or school objectives. As part of the test&#8208;building process, you first select a standard set, subject, and level; then, you select the desired associated objectives to include in the custom test.&nbsp;</p> <p>&nbsp;</p> <p>You can make changes to the order and number of objectives for each test and to the test item property settings. All of the tests you create can be saved and edited.</p> </div><div id=\"section_2\" class=\"mt-page-section\"><span id=\"Building_an_Objective-Based_Test\"></span><h2 class=\"editable\">Building an Objective-Based Test</h2>  <p><span style=\"font-size: 12px; line-height: 1.5;\">On the Test Builder page, first select a set of standards from the menu provided. </span>From the Objective Additions drop&#8208;down list on the Select Standard screen of the test builder section, specify how you want objectives to be added to a custom test:</p> <p>&nbsp;</p> <ul> <li><strong>Add to existing objectives</strong> adds newly selected objectives to existing objectives in the test, if any. Select this option when you build a custom test that includes objectives from multiple subjects and/or levels. For example, if you want to include objectives from more than one subject area&mdash;Math and Geometry&mdash;you will select Add to existing objectives.</li> <li><strong>Replace all objectives</strong> includes only the newly selected objectives in the test, replacing any existing objectives, if any, that were previously defined. This option allows you to start building a custom test from the beginning and also may be used when you are editing an existing custom test.</li> </ul> <p>&nbsp;</p> <p>It is important to know that the Objective-Based test is independent from an assignment. For instance, if you copy an assignment containing an Objective-based test, you will have control over the assignment properties, but not the test properties (unless you also created the test). Attempting to edit a test that you did not create may produce the following error message:</p> <p><strong><span style=\"background-color:#faebd7;\">CAUTION:</span></strong><span style=\"background-color:#faebd7;\">&nbsp;If you copy an assignment that includes an objective&#8208;based test, and then edit the test, your edits are applied to the original objective&#8208;based test. See Editing Custom Objective&#8208;based Tests.</span></p> <div id=\"section_3\" class=\"mt-page-section\"><span id=\"What_are_Learning_Paths.3F\"></span><h3 class=\"editable\">What are Learning Paths?</h3>  <p>Some assignments include a&nbsp;<strong>learning path</strong>, a set of activities designed to cover the objectives a student has not mastered in an objective&#8208;based test, an exit exam (for high&#8208;school level curriculum), or a test external to Odyssey. You can build an objective&#8208;based using the Odyssey curriculum; create one with custom assessment objectives; or create one using your state&rsquo;s objectives (where applicable). Odyssey will create a learning path based on objective&#8208;based tests. Learning paths based on customized objectives must be created manually.&nbsp;<br /> <br /> Also, a teacher may administer an exit exam as part of an Odyssey high school course. Alternatively, in schools that have purchased support for Odyssey&rsquo;s Test Translator, the test is administered outside of Odyssey Manager. Administrators use Test Translator to import test results into Odyssey Manager and a learning path is automatically created based on the results of the NWEA or state test.&nbsp;</p></div></div>",
         {
            "@target":"toc",
            "#text":"<ol style=\"list-style-type:none; margin-left:0px; padding-left:0px;\"><li><span>1.</span> <a href=\"#Overview\" rel=\"internal\">Overview</a></li><li><span>2.</span> <a href=\"#Building_an_Objective-Based_Test\" rel=\"internal\">Building an Objective-Based Test</a><ol style=\"list-style-type:none; margin-left:0px; padding-left:15px;\"><li><span>2.1.</span> <a href=\"#What_are_Learning_Paths.3F\" rel=\"internal\">What are Learning Paths?</a></li></ol></li></ol>"
         }
      ]
   }
}

谁能告诉我,我做错了什么

这不是Javascript,更不用说jQuery了。请修复您的标签。我已在salesforce.stackexchange.com上回答了您的问题。看看是否有帮助。
{
   "content":{
      "MTType":"text/html",
      "MTTitle":"Test Builder",
      "body":[
         " <div id=\"section_1\" class=\"mt-page-section\"><span id=\"Overview\"></span><h2 class=\"editable\">Overview</h2>  <p>You can use Test Builder to create custom objective&#8208;based tests using objectives from the Odyssey curriculum, your standard state objectives, or your own custom district or school objectives. As part of the test&#8208;building process, you first select a standard set, subject, and level; then, you select the desired associated objectives to include in the custom test.&nbsp;</p> <p>&nbsp;</p> <p>You can make changes to the order and number of objectives for each test and to the test item property settings. All of the tests you create can be saved and edited.</p> </div><div id=\"section_2\" class=\"mt-page-section\"><span id=\"Building_an_Objective-Based_Test\"></span><h2 class=\"editable\">Building an Objective-Based Test</h2>  <p><span style=\"font-size: 12px; line-height: 1.5;\">On the Test Builder page, first select a set of standards from the menu provided. </span>From the Objective Additions drop&#8208;down list on the Select Standard screen of the test builder section, specify how you want objectives to be added to a custom test:</p> <p>&nbsp;</p> <ul> <li><strong>Add to existing objectives</strong> adds newly selected objectives to existing objectives in the test, if any. Select this option when you build a custom test that includes objectives from multiple subjects and/or levels. For example, if you want to include objectives from more than one subject area&mdash;Math and Geometry&mdash;you will select Add to existing objectives.</li> <li><strong>Replace all objectives</strong> includes only the newly selected objectives in the test, replacing any existing objectives, if any, that were previously defined. This option allows you to start building a custom test from the beginning and also may be used when you are editing an existing custom test.</li> </ul> <p>&nbsp;</p> <p>It is important to know that the Objective-Based test is independent from an assignment. For instance, if you copy an assignment containing an Objective-based test, you will have control over the assignment properties, but not the test properties (unless you also created the test). Attempting to edit a test that you did not create may produce the following error message:</p> <p><strong><span style=\"background-color:#faebd7;\">CAUTION:</span></strong><span style=\"background-color:#faebd7;\">&nbsp;If you copy an assignment that includes an objective&#8208;based test, and then edit the test, your edits are applied to the original objective&#8208;based test. See Editing Custom Objective&#8208;based Tests.</span></p> <div id=\"section_3\" class=\"mt-page-section\"><span id=\"What_are_Learning_Paths.3F\"></span><h3 class=\"editable\">What are Learning Paths?</h3>  <p>Some assignments include a&nbsp;<strong>learning path</strong>, a set of activities designed to cover the objectives a student has not mastered in an objective&#8208;based test, an exit exam (for high&#8208;school level curriculum), or a test external to Odyssey. You can build an objective&#8208;based using the Odyssey curriculum; create one with custom assessment objectives; or create one using your state&rsquo;s objectives (where applicable). Odyssey will create a learning path based on objective&#8208;based tests. Learning paths based on customized objectives must be created manually.&nbsp;<br /> <br /> Also, a teacher may administer an exit exam as part of an Odyssey high school course. Alternatively, in schools that have purchased support for Odyssey&rsquo;s Test Translator, the test is administered outside of Odyssey Manager. Administrators use Test Translator to import test results into Odyssey Manager and a learning path is automatically created based on the results of the NWEA or state test.&nbsp;</p></div></div>",
         {
            "@target":"toc",
            "#text":"<ol style=\"list-style-type:none; margin-left:0px; padding-left:0px;\"><li><span>1.</span> <a href=\"#Overview\" rel=\"internal\">Overview</a></li><li><span>2.</span> <a href=\"#Building_an_Objective-Based_Test\" rel=\"internal\">Building an Objective-Based Test</a><ol style=\"list-style-type:none; margin-left:0px; padding-left:15px;\"><li><span>2.1.</span> <a href=\"#What_are_Learning_Paths.3F\" rel=\"internal\">What are Learning Paths?</a></li></ol></li></ol>"
         }
      ]
   }
}