Le 18/12/2013 15:39, monitormen...@gmail.com a écrit : > Hello all, > > I'm currently working on a FFOS app & web service to back up all contacts. > I'd like to export all mozContact items as JSON and import them the same way. > Is there any build-in (undocumented) function to achieve this or do I have to > write my own contactsToJSON / contactsFromJSON? > All you can use is documented in the WebIDL [1]. If it's not there it's not there ;)
That said, JSON.stringify(contact) works well IIRC. [1] https://mxr.mozilla.org/mozilla-central/source/dom/webidl/Contacts.webidl
signature.asc
Description: OpenPGP digital signature
_______________________________________________ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g