Home Download Buy Blog Forum Support

JSON for all configuration files?

JSON for all configuration files?

Postby bobrocke on Tue Jan 01, 2013 1:10 am

Is moving to JSON for all the configuration files on the development roadmap? It sure would make things easier than having some in JSON and some as PLIST (XML).
Bob
-----
Bob Rockefeller
Richmond Hill, GA
"I'm growing older, but not up!"
www.bobrockefeller.com
bobrocke
 
Posts: 14
Joined: Sun Dec 02, 2012 2:20 pm

Re: JSON for all configuration files?

Postby ArtDesire on Tue Jan 01, 2013 4:07 am

AFAIK, all configuration files shows as JSON, and then converts to PList.
ArtDesire
 
Posts: 26
Joined: Thu Dec 27, 2012 9:41 pm
Location: Canada

Re: JSON for all configuration files?

Postby bobrocke on Tue Jan 01, 2013 10:38 pm

ArtDesire wrote:AFAIK, all configuration files shows as JSON, and then converts to PList.


You can start with a JSON file and convert it to PLIST, but it has to be PLIST to work and it's a pain editing PLISTs (or converting them back and forth to JSON).
Bob
-----
Bob Rockefeller
Richmond Hill, GA
"I'm growing older, but not up!"
www.bobrockefeller.com
bobrocke
 
Posts: 14
Joined: Sun Dec 02, 2012 2:20 pm

Re: JSON for all configuration files?

Postby wbond on Wed Jan 02, 2013 1:19 am

bobrocke wrote:Is moving to JSON for all the configuration files on the development roadmap? It sure would make things easier than having some in JSON and some as PLIST (XML).


Not to sound overly pedantic, but I believe all configuration is via JSON. The only XML I know of is syntax definitions and colors schemes, which use Textmate-compatible XML so that Sublime Text users can take advantage of the large collection of those available online.

For syntax definitions, I believe you can use AAAPackageDev (https://github.com/SublimeText/AAAPackageDev) to convert JSON syntax definitions to the XML necessary for run-time usage. I imagine you could do the same for color schemes.
wbond
 
Posts: 532
Joined: Mon Feb 28, 2011 5:33 am

Re: JSON for all configuration files?

Postby amphetamine on Thu Jan 03, 2013 4:51 pm

Of course, some people like myself would rather not see JSON anywhere except in more or less flat configuration files. I find it totally unintelligible for all but the simplest files with minimal embedding depth.
amphetamine
 
Posts: 23
Joined: Fri Dec 14, 2012 8:59 pm


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 17 guests