2010-11-20 14 views

答えて

1

と呼ばれています。次のようなもの:

public ActionResult MyAction() { 
    return Json(new {thing1="first thing", thing2="second thing"}); 
} 
2

シンプルです。

public ActionResult MyAction() { 
    return Content("this is a string literal, which can be HTML, XML, JSON, etc."); 
} 

しかし、私は、私はそれを使ったことがないのに、私は、前の実際のJSON戻りオブジェクトを覚えていると思う:あなたがこれを手動で行うことができJsonResult

関連する問題