micromdm
micromdm copied to clipboard
Boolean field false is omitted
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
Some update about this issue??
i have faced the same error for false value
Do you have any update on this one? Can someone validate this issue is fixed?