私は現在jsonの学習に取り組んでおり、いわば私の偉業を成し遂げるために、json情報を含むファイルを取得してサイトに取り込むための最良の方法は何だろうと思っていました。ファイルは次のようになります。
window.test =
{
    "header1":
    [
        { "title": "title1", "author": "author1"},
        { "title": "title2", "author": "author2"},
        { "title": "title3", "author": "author3"}
    ],
    "header2":
    [
        { "title": "title1", "author": "author1"},
        { "title": "title1", "author": "author2"},
        { "title": "title1", "author": "author3"}
    ]
};
それでは、コードは次のようになりますか?
$(function() {
    $.getJSON('jsonFile.js',function(data){
        $.each(data, function(){
            console.log(header1.title);
            console.log(header2.title);
        });
    });
});
繰り返しになりますが、私は JSON の初心者なので、チュートリアル、提案、ここでのコアコンセプトを理解するのに役立つものは何でも役立ちます。