Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
以下は、私が得ているjson応答です。
{ "day": ["Thursday", "Friday", "Saturday", "Sunday"], "date": ["03-01-2012", "03-02-2012", "03-03-2012", "03-04-2012"] }
日と日付を別々に解析したい。
成功関数はこんな感じですよね?
success: function(data) { // data represents here the ajax json response var days = data.day; var dates = data.date; // Here loop through them, or do anything else you like }
基本的に、JSON 応答は、他の Javascript オブジェクトと同じように扱うことができます。