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++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -