The Apple mdm documentation shows that profile keys need to start with uppercase, such as RemovalDate (in "date" format).
However, plist does not support specifying the key to be converted to string.
So I have to use Jackson to convert it as follows:
POJO -> Map -> NSObject -> String
public class Profile {
@JsonProperty("RemovalDate")
private Date removalDate;
}
Not:
POJO -> NSObject -> String
However, the 'RemovalDate' in the Map is in String format, not in Date format. It caueses a conversion error.
I got:
In the object you pass to NSObject.fromJavaObject is the RemovalDate a string or a date (java.util.Date)? It must be a date so that it is serialized as <date>...</date>.
The Apple mdm documentation shows that profile keys need to start with uppercase, such as RemovalDate (in "date" format). However, plist does not support specifying the key to be converted to string. So I have to use Jackson to convert it as follows: POJO -> Map -> NSObject -> String
Not: POJO -> NSObject -> String
However, the 'RemovalDate' in the Map is in String format, not in Date format. It caueses a conversion error. I got:
It shuold be
<date>...</date>
:Is there any solution? Thanks.