<meta name="viewport" content="width=device-width" />
<script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
<script type="text/javascript">
$("#theButton").click(function () {
for (i = 0; i <= 3; i++) {
var json = JSON.stringify(PdfInputs);
location.href = '@Url.Action("IndexWJson", "Home")?json=' + json;
//location.href = '@Url.Action("theActionPassArray", "Home")?json=' + json;
<input type="button" id="theButton" value="Go" />
@*credit to https://stackoverflow.com/questions/15112055/passing-dynamic-javascript-values-using-url-action*@
@if (ViewBag.Data != null)
<span>The data sent to the server was:</span>@ViewBag.Data