I feel deja va, but I canβt find the answer to this question: I have an array of objects that should look like this when you check the jQ $ .post call:
limiter[0].Key limiter[0].Value
so that it appears in action
public ActionResult SomeAction(Dictionary<Guid, string> dictionary) { }
However, this javascript:
// Some Guid and Some Value var param = [ { 'Key' : '00000000-0000-00000-000000', 'Value': 'someValue' } ]; $.post('/SomeController/SomeAction/', { dictionary: limiter, otherPostData: data }, function(data) { callback(data); } )
does this when checking it in firebug:
limiter[0][Key] = someKey // Guid Value limiter[0][Value] = someValue
This is in jq 1.4.2. It seems I remember some flag that you need to set up to render json differently in jQ. Is this ring ringing?
source share