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

Popular posts from this blog

c - CUDA code not processing if block properly -

oracle11g - get root domain from url Oracle sql regex_substr -

xcode - Swift Playground - Files are not readable -