Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Bugs

[issue14455] plistlib unable to read json and binary plist files

 

 

Python bugs RSS feed   Index | Next | Previous | View Threaded


report at bugs

Jul 3, 2012, 1:05 PM

Post #1 of 2 (58 views)
Permalink
[issue14455] plistlib unable to read json and binary plist files

Mark Grandi <markgrandi [at] gmail> added the comment:

Hi,

I noticed in the latest message that d9pounces posted that "JSON format does not allow dates and data, so XML is used by default to write files.". Rthe XML version of plists also do not really 'support' those types, and they are converted as follows:

NSData -> Base64 encoded data
NSDate -> ISO 8601 formatted string

(from http://en.wikipedia.org/wiki/Property_list#Mac_OS_X)

So really it should be the same thing when converting to json no?

----------
nosy: +markgrandi

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue14455>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Jul 14, 2012, 2:46 AM

Post #2 of 2 (42 views)
Permalink
[issue14455] plistlib unable to read json and binary plist files [In reply to]

d9pouces <python [at] 19pouces> added the comment:

The plutil (Apple's command-line tool to convert plist files from a format to another) returns an error if you try to convert a XML plist with dates to JSON.

----------

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue14455>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com

Python bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.