micromdm icon indicating copy to clipboard operation
micromdm copied to clipboard

Boolean field false is omitted

Open edgar86cru opened this issue 6 years ago • 6 comments

When I pass this body in the url v1/commands

    body: JSON.stringify({
      udid: tokens[0],
      request_type: "Settings",
      settings: [{
        "item": "Bluetooth",
        "enabled": false
      }]
    })

In the plist result the field Enabled is omitted, it works when the value is true.

I think the problem is in the library github.com/groob/plist at this line: https://github.com/groob/plist/blob/a99fbe489d03c90cfeff2db2643d13916e9a3898/encode.go#L129

Thank you in advance

edgar86cru avatar Jan 18 '20 13:01 edgar86cru

Some update about this issue??

edgar86cru avatar Jan 30 '20 08:01 edgar86cru

i have faced the same error for false value

rkoshti avatar Jan 30 '20 09:01 rkoshti

Do you have any update on this one? Can someone validate this issue is fixed?

jbpin avatar Sep 15 '20 10:09 jbpin