nancy - returning boolean value from Nancyfx -
i'm having tiny issue 1 particular item regarding nancy. should real simple. i'm missing something. when return property boolean, value returns string. so, object has 1 property setup "bool valid {get;set;}"
and if code looks like:
myobject o = new myobject(); o.valid = true; return response.asjson(o);
the resulting json {"valid":"true"}. want {"valid":true}. there way enforce data types?
thoughts? thanks.
Comments
Post a Comment