Re: [b2g] mozContact export/import

2013-12-20 Thread Reuben Morais
On Dec 18, 2013, at 13:37, Julien Wajsberg wrote: > 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

Re: [b2g] mozContact export/import

2013-12-18 Thread monitormensch
On Wednesday, December 18, 2013 4:37:21 PM UTC+1, Julien Wajsberg wrote: > 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

Re: [b2g] mozContact export/import

2013-12-18 Thread Julien Wajsberg
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

[b2g] mozContact export/import

2013-12-18 Thread monitormensch
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? tha