[bb10] bug : #291 PlexyDesk crashes on Facebook login

check if a json object is of string type before converting to
String. doing so leads to a crash

closes #291
[bb10] Convert the map to XML

Convert note data to xml which can be shared over the network