Here is a sample settings.json file. Quite elegant compared to an XML
config, I would say.

{
"blocklist-enabled": 0,
"download-dir": "\/media\/store\/incoming",
"download-limit": 100,
"download-limit-enabled": 0,
"encryption": 2,
"max-peers-global": 200,
"peer-port": 51413,
"pex-enabled": 1,
"port-forwarding-enabled": 0,
"rpc-access-control-list": "+127.0.0.1",
"rpc-authentication-required": 0,
"rpc-password": "",
"rpc-port": 9091,
"rpc-username": "3",
"upload-limit": 3,
"upload-limit-enabled": 1,
"proxy": 192.168.0.106,
"proxy-port": 3128,
"proxy-enabled": 1
}

On Tue, Mar 12, 2013 at 12:19 AM, Afkham Azeez <[email protected]> wrote:

>
>
> On Mon, Mar 11, 2013 at 11:25 PM, Paul Fremantle <[email protected]> wrote:
>
>> Should we consider moving Config files to JSON?! I personally prefer XML
>> for config but maybe I'm just old school.
>>
>>
> I like the idea of moving to JSON which I brought up sometime back, but
> not many people agreed at that time. I am using Transmission on my
> Raspberry Pi (Raspbmc), and it config is completely based on JSON, and it
> is very handy to edit using vi.
>
>
>> Paul
>>
>>
>> On 11 March 2013 17:43, Sameera Jayasoma <[email protected]> wrote:
>>
>>> +1.
>>>
>>> I've been using DOM parsing instead of Axiom in my projects for some
>>> time.  But we need to come up with a DOM utility module. LIke helper module.
>>>
>>> Thanks,
>>> Sameera.
>>>
>>>
>>> On Mon, Mar 11, 2013 at 8:09 AM, Afkham Azeez <[email protected]> wrote:
>>>
>>>> Folks,
>>>> The Carbon 5 hackathon team has been thinking about using DOM instead
>>>> of Axiom for parsing XML files. The rationale is to use Axiom where is it
>>>> appropriate, only where necessary to make Carbon kernel code less coupled
>>>> with Axiom. Axiom APIs are great but they are non-standard. Besides, we
>>>> want to keep the kernel dependencies to a bare minimum.
>>>>
>>>> What do others think about this idea?
>>>>
>>>> --
>>>> *Afkham Azeez*
>>>> Director of Architecture; WSO2, Inc.; http://wso2.com
>>>> Member; Apache Software Foundation; http://www.apache.org/
>>>> * <http://www.apache.org/>**
>>>> email: **[email protected]* <[email protected]>* cell: +94 77 3320919
>>>> blog: **http://blog.afkham.org* <http://blog.afkham.org>*
>>>> twitter: 
>>>> **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez>
>>>> *
>>>> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
>>>> *
>>>> *
>>>> *Lean . Enterprise . Middleware*
>>>>
>>>> _______________________________________________
>>>> Dev mailing list
>>>> [email protected]
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>> Sameera Jayasoma
>>> Senior Technical Lead
>>>
>>> WSO2, Inc. (http://wso2.com)
>>> email: [email protected]
>>> blog: http://sameera.adahas.org
>>>
>>>
>>> Lean . Enterprise . Middleware
>>>
>>> _______________________________________________
>>> Dev mailing list
>>> [email protected]
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Paul Fremantle
>> CTO and Co-Founder, WSO2
>> OASIS WS-RX TC Co-chair, VP, Apache Synapse
>>
>> UK: +44 207 096 0336
>> US: +1 646 595 7614
>>
>> blog: http://pzf.fremantle.org
>> twitter.com/pzfreo
>> [email protected]
>>
>> wso2.com Lean Enterprise Middleware
>>
>> Disclaimer: This communication may contain privileged or other
>> confidential information and is intended exclusively for the addressee/s.
>> If you are not the intended recipient/s, or believe that you may have
>> received this communication in error, please reply to the sender indicating
>> that fact and delete the copy you received and in addition, you should not
>> print, copy, retransmit, disseminate, or otherwise use the information
>> contained in this communication. Internet communications cannot be
>> guaranteed to be timely, secure, error or virus-free. The sender does not
>> accept liability for any errors or omissions.
>>
>
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * <http://www.apache.org/>**
> email: **[email protected]* <[email protected]>* cell: +94 77 3320919
> blog: **http://blog.afkham.org* <http://blog.afkham.org>*
> twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez>
> *
> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
> *
> *
> *Lean . Enterprise . Middleware*
>



-- 
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* <http://www.apache.org/>**
email: **[email protected]* <[email protected]>* cell: +94 77 3320919
blog: **http://blog.afkham.org* <http://blog.afkham.org>*
twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez>
*
linked-in: **http://lk.linkedin.com/in/afkhamazeez*
*
*
*Lean . Enterprise . Middleware*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to