我无法验证以下JSON块。任何想法为什么这看起来与正常的大块不同?
{"query": {"pages": {"52000": {"revisions": [{"*": "{{#fte:imslppage\n\n| *****AUDIO***** =\n\n| *****FILES***** =\n===Parts===\n====Complete====\n{{#fte:imslpfile\n|File Name 2=PMLP52000-o.pdf\n|File Description 2=Complete Parts (B&W)\n|Page Count 2=170\n|Editor=\n|Image Type=Normal Scan\n|Scanner 2={{BSB}}\n|Uploader 2=[[User:Carmar1791|Carmar1791]]\n|Date Submitted 2=2008/10/6\n|Publisher Information=London: [[John Walsh]] [obscured by John Young's label] n.d. (ca.1725)\n|Copyright=Public Domain\n|Misc. Notes=Pirated edition of the unauthorized Amsterdam print by Le Cene.\n|File Name 1=PMLP52000-tessarini_concerti_a5_op1_bsb_colour.pdf\n|File Description 1=Complete Parts (Colour)\n|Scanner 1={{BSB}}\n|Uploader 1=[[User:Fynnjamin|Fynnjamin]]\n|Date Submitted 1=2014/8/19\n}}\n\n| *****WORK INFO*****\n\n|Work Title=Concerti a Cinque Con 3 Violini Violetta Violoncello o Basso Continuo\n|Alternative Title=12 Violin Concerti\n|Opus/Catalogue Number=Op.1 (so called by the publisher not in accordance with the usual worklist)\n|Number of Movements/Sections=12 concerti\n|Dedication=\n|Year/Date of Composition=1715 ca.\n|Year of First Publication=1724 (Amsterdam: Le Cene)\n|Genre=Concerto\n|Librettist=\n|Language=\n|Piece Style=Baroque\n|Instrumentation=Violin solo strings continuo\n|Related Works=[[3 Violin Concertos (Tessarini Carlo)]] earlier versions of 3 of these published concertos\n|Tags=concertos ; vn str bc\n\n| *****COMMENTS***** =\n\n\n\n| *****END OF TEMPLATE***** }}"}] "pageid": 52000 "title": "12 Concerti a cinque Op.1 (Tessarini Carlo)" "ns": 0}} "normalized": [{"from": "12_Concerti_a_cinque _Op.1_(Tessarini _Carlo)" "to": "12 Concerti a cinque Op.1 (Tessarini Carlo)"}]}}
任何帮助都会受到赞赏。最终的目标是将其变成一个可读/易消化的文件,来自几千个这样的块。
答案 0 :(得分:1)
正如tymeJV建议的那样,使用jsonlint.com来验证你的json。
你到处都缺少逗号。
{
"query": {
"pages": {
"52000": {
"revisions": [{
"*": "{{#fte:imslppage\n\n| *****AUDIO***** =\n\n| *****FILES***** =\n===Parts===\n====Complete====\n{{#fte:imslpfile\n|File Name 2=PMLP52000-o.pdf\n|File Description 2=Complete Parts (B&W)\n|Page Count 2=170\n|Editor=\n|Image Type=Normal Scan\n|Scanner 2={{BSB}}\n|Uploader 2=[[User:Carmar1791|Carmar1791]]\n|Date Submitted 2=2008/10/6\n|Publisher Information=London: [[John Walsh]] [obscured by John Young's label] n.d. (ca.1725)\n|Copyright=Public Domain\n|Misc. Notes=Pirated edition of the unauthorized Amsterdam print by Le Cene.\n|File Name 1=PMLP52000-tessarini_concerti_a5_op1_bsb_colour.pdf\n|File Description 1=Complete Parts (Colour)\n|Scanner 1={{BSB}}\n|Uploader 1=[[User:Fynnjamin|Fynnjamin]]\n|Date Submitted 1=2014/8/19\n}}\n\n| *****WORK INFO*****\n\n|Work Title=Concerti a Cinque Con 3 Violini Violetta Violoncello o Basso Continuo\n|Alternative Title=12 Violin Concerti\n|Opus/Catalogue Number=Op.1 (so called by the publisher not in accordance with the usual worklist)\n|Number of Movements/Sections=12 concerti\n|Dedication=\n|Year/Date of Composition=1715 ca.\n|Year of First Publication=1724 (Amsterdam: Le Cene)\n|Genre=Concerto\n|Librettist=\n|Language=\n|Piece Style=Baroque\n|Instrumentation=Violin solo strings continuo\n|Related Works=[[3 Violin Concertos (Tessarini Carlo)]] earlier versions of 3 of these published concertos\n|Tags=concertos ; vn str bc\n\n| *****COMMENTS***** =\n\n\n\n| *****END OF TEMPLATE***** }}"
}],
"pageid": 52000,
"title": "12 Concerti a cinque Op.1 (Tessarini Carlo)",
"ns": 0
}
},
"normalized": [{
"from": "12_Concerti_a_cinque _Op.1_(Tessarini _Carlo)",
"to": "12 Concerti a cinque Op.1 (Tessarini Carlo)"
}]
}
}