Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/json/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript JSON格式需要一些帮助(从prismic输出到Angular输出的文本)_Javascript_Json_Angularjs - Fatal编程技术网

Javascript JSON格式需要一些帮助(从prismic输出到Angular输出的文本)

Javascript JSON格式需要一些帮助(从prismic输出到Angular输出的文本),javascript,json,angularjs,Javascript,Json,Angularjs,我试图得到一个角度为基础的前端工作,但我有困难与此格式的工作。它的html标记是JSON格式的,我想知道如何以Javascript/Angular格式输出它们。下面是一个片段,希望它能起作用: spans": [ { "start": 63, "end": 70, "type": "strong" } ] }, { "type": "paragraph", "text": "Notice how the tag bar transforms into a formatting toolbar w

我试图得到一个角度为基础的前端工作,但我有困难与此格式的工作。它的html标记是JSON格式的,我想知道如何以Javascript/Angular格式输出它们。下面是一个片段,希望它能起作用:

spans": [ { "start": 63, "end": 70, "type": "strong" } ] }, { "type": "paragraph", "text": "Notice how the tag bar transforms into a formatting toolbar when you're writing in this editor. Now, this might look like a wysiwyg, but this is actually not your average wysiwyg, as it stores structured content, and not HTML. It allows you to build your content in better ways as you type it, making it easy for you to present it in various ways later.", "spans": [ { "start": 41, "end": 59, "type": "strong" } ] }
有人有这方面的经验吗?我想知道如何将这个JSON文档爬网到输出,例如从spans到HTML


谢谢

您只粘贴了JSON字符串的一部分。就目前而言,上述内容不是有效的JSON。您想做什么?以身作则。好吧,我得自己解决这个问题:-