Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #31177

Re: Basic JSON question: Do I really need the quotes

From Roy Smith <roy@panix.com>
Newsgroups comp.lang.python
Subject Re: Basic JSON question: Do I really need the quotes
Date 2012-10-12 20:03 -0400
Organization PANIX Public Access Internet and UNIX, NYC
Message-ID <roy-6ED2F5.20034412102012@news.panix.com> (permalink)
References <cbd2f125-38ca-4f46-9077-95de0cf7ea6f@googlegroups.com>

Show all headers | View raw


In article <cbd2f125-38ca-4f46-9077-95de0cf7ea6f@googlegroups.com>,
 moogyd@yahoo.co.uk wrote:

> I need to define some configuration in a file that will be manually created.
> [...]
> json seemed a quick an easy way of achieving this

JSON would not be my first choice for a file which needs to be 
maintained by hand.

I've only recently started using a system that has YAML config files.  
I've quickly become enamored of the format for config files.  I don't 
know if it's capable of expressing everything you can with JSON, but it 
certainly can do anything you would reasonably want to put in a config 
file, it's easy to read, and easy to hand-edit.

> The problem is that I don't want to make users have to type redundant 
> characters.

I think what you're saying is, "My users would prefer YAML over JSON" :-)

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Basic JSON question: Do I really need the quotes moogyd@yahoo.co.uk - 2012-10-12 07:09 -0700
  Re: Basic JSON question: Do I really need the quotes Kwpolska <kwpolska@gmail.com> - 2012-10-12 16:14 +0200
  Re: Basic JSON question: Do I really need the quotes Roel Schroeven <roel@roelschroeven.net> - 2012-10-12 19:27 +0200
  Re: Basic JSON question: Do I really need the quotes Adam Tauno Williams <awilliam@whitemice.org> - 2012-10-12 13:52 -0400
  Re: Basic JSON question: Do I really need the quotes Roy Smith <roy@panix.com> - 2012-10-12 20:03 -0400
    Re: Basic JSON question: Do I really need the quotes rusi <rustompmody@gmail.com> - 2012-10-12 20:30 -0700
  Re: Basic JSON question: Do I really need the quotes moogyd@yahoo.co.uk - 2012-10-14 22:48 -0700

csiph-web