plist icon indicating copy to clipboard operation
plist copied to clipboard

Support json plist format

Open grosser opened this issue 14 years ago • 14 comments

Is it possile to parse something like this ?

https://raw.github.com/kangax/textmate-js-language-syntax-file/master/JavaScript.plist

grosser avatar Oct 05 '11 15:10 grosser

Nope. That's not a plist, just some random file with a plist extension.

bleything avatar Oct 05 '11 15:10 bleything

Is that a json plist?

On Wed, Oct 5, 2011 at 11:49 AM, Michael Grosser < [email protected]>wrote:

Is it possile to parse something like this ?

https://raw.github.com/kangax/textmate-js-language-syntax-file/master/JavaScript.plist

Reply to this email directly or view it on GitHub: https://github.com/bleything/plist/issues/7

Patrick May +1 (347) 232-5208

patsplat avatar Oct 05 '11 16:10 patsplat

That was my initial thought too, but I looked around and couldn't find any official spec for json plists. I think maybe it's something that TextMate has done to encode plists in a friendlier format?

If there's a standard, even if it's emerging, I'd be happy to add support for it. I just want documentation so we don't end up implementing something broken.

bleything avatar Oct 05 '11 17:10 bleything

I thin kits this: http://en.wikipedia.org/wiki/Property_list

From the look of it its the same content, just another format

grosser avatar Oct 05 '11 18:10 grosser

Well, just about any data structure can be turned into a plist. My opinion is that if plutil doesn't speak it, we shouldn't support it.

That said... turns out plutil has a json format now. I can't find any docs, but it should be relatively easy to write tests to verify that we're doing the right thing.

Reopening this request.

bleything avatar Oct 05 '11 18:10 bleything

i tried this: http://scw.us/iPhone/plutil/plutil.pl but it did not read or convert this file, how did you do it ?

grosser avatar Oct 05 '11 18:10 grosser

$ man plutil

:)

bleything avatar Oct 05 '11 18:10 bleything

also did not work, maybe its outdated on ubuntu...

grosser avatar Oct 05 '11 18:10 grosser

Ah, ubuntu. plutil is part of OSX. Can't help you on other platforms.

bleything avatar Oct 05 '11 19:10 bleything

Don't have any problems with supporting NeXT property lists but it seems a bit esoteric. Parsing and emitting binary and json plists is definitely a desired feature.

patsplat avatar Jan 28 '16 03:01 patsplat