You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mesos.apache.org by "Benjamin Hindman (JIRA)" <ji...@apache.org> on 2014/01/22 20:51:20 UTC

[jira] [Commented] (MESOS-939) assignment of bool to Stout JSON::Value yields JSON::Double

    [ https://issues.apache.org/jira/browse/MESOS-939?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13879096#comment-13879096 ] 

Benjamin Hindman commented on MESOS-939:
----------------------------------------

Sounds good to me.

> assignment of bool to Stout JSON::Value yields JSON::Double
> -----------------------------------------------------------
>
>                 Key: MESOS-939
>                 URL: https://issues.apache.org/jira/browse/MESOS-939
>             Project: Mesos
>          Issue Type: Bug
>            Reporter: Charlie Carson
>            Priority: Minor
>
> JSON::Value b = false; goes through the JSON::Double constructor and yields 0 instead of false when you serialize.
> 1 solution would be to create a common super type JSON::Boolean which w/ bool field and an implicit constructor ala JSON::String & JSON::Double.
> I'm happy to fix this but wanted some input on if that was the best solution first.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)