newb warning.
after spending entirely to long I still can't figure out where incoming json gets pushed into the inputmodel for my action. We are using fubucore/mvc 9.4 and We have conneg setup. Initially I thought that hydration using json was in model binding but I'll be damned if I can find it. Basically my issue currenlty is trying to get a route like the following to work with the input model while taking in a json object that is 'labeled'
route: site/api/person/<personid>/Address
inputmodel:
public class IncomingModel
{
public Guid personid {get;set;}
public Address address {get;set;}
}
Incoming Json:
{"name":"george","address1":"221 E Cullerton","Address2":"Chicago, IL"}
If I do something more like {"address":{<yada>}}
It works fine, but for various reasons I'd like to avoid that.
So how do I bind the incoming json to address?
Also for us uber newbs, if I have the version number off the fubucore/mvc dll (0.9.4.117) how do I translate that to a git revision so I can use it in the debugger?
Thanks and let me know if I flubbed edict somewhere along the way.
--
You received this message because you are subscribed to the Google Groups "FubuMVC Development Group" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/fubumvc-devel/-/txfGkKbP8JEJ.