Pass array of objects as hidden field value into mvc controller
<p>I am using VS2015, MVC5.
My submit form:</p>

<pre><code>        @using (Html.BeginForm("Test", "Home", FormMethod.Post))
    {
        &lt;input name="celo" type="hidden" value="994" /&gt;
        &lt;input name="pispis" type="hidden" value="Došel je prošel pisani Vuzem!" /&gt;
        &lt;input name="userji" type="hidden" 
            value="[{'ID':1,'Name':'John','TotalPayed':0,'TotalDebt':0},
                {'ID':2,'Name':'George','TotalPayed':0,'TotalDebt':0},
                {'ID':3,'Name':'Simon','TotalPayed':0,'TotalDebt':0},
                {'ID':4,'Name':'Antonio','TotalPayed':0,'TotalDebt':0}]" /&gt;
        &lt;input type="submit" value="Submit test"/&gt;
    }
</code></pre>

<p>Controller:</p>

<pre><code>    public void Test(int celo, string pispis, List&lt;User&gt; userji)
    {

    }
</code></pre>

<p>Class User:</p>

<pre><code>    public class User
{
    public int ID { get; set; }
    public string Name { get; set; }
    public int TotalPayed { get; set; }
    public int TotalDebt { get; set; }         
}
</code></pre>

<p>Values 'celo' and 'pispis' are transferred correctly. I have a problem with array of objects 'userji' - it is null on controller. Is there a way to pass array of objects into controller using submit form?</p>