Here is JSON in all camelCase: http://pastebin.com/8zpHsjNL

and in CamelCase for Elements and camelCase for attributes:
http://pastebin.com/ed0R0grE

You can edit org.apache.logging.log4j.core.jackson.JSONConstants to play
with the names (and expect some test to fail).

You can comment out a // SO.println in
-
org.apache.logging.log4j.core.layout.JSONLayoutTest.testAllFeatures(boolean,
boolean, boolean)
-
org.apache.logging.log4j.core.layout.XMLLayoutTest.testAllFeatures(boolean,
boolean, boolean)

to see the serialized events.

Gary


On Wed, May 14, 2014 at 1:23 AM, Gary Gregory <garydgreg...@gmail.com>wrote:

> Here is an example for the current XML: http://pastebin.com/cLbuwe4b
>
> Gary
>
>
> On Tue, May 13, 2014 at 10:53 PM, Ralph Goers <rgo...@apache.org> wrote:
>
>> Can you post an example?
>>
>> Sent from my iPad
>>
>> On May 13, 2014, at 6:51 PM, Gary Gregory <garydgreg...@gmail.com> wrote:
>>
>> This messages is about the format of tag names, not the shape of the
>> elements.
>>
>> Right now, I have XML elements names in CamelCase format and XML
>> attributes in camelCase format. Pretty standard.
>>
>> For JSON, I have both types of names as camelCase, but it makes the code
>> a little awkward to undertamd and maintain.
>>
>> So what I think I'm going to do is use the CamelCase for objects and
>> camelCase for primitives.
>>
>> This will give both the code and documents the same feel and it will make
>> it easier to understand (IMO).
>>
>> Gary
>>
>> --
>> E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
>> Java Persistence with Hibernate, Second 
>> Edition<http://www.manning.com/bauer3/>
>> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
>> Spring Batch in Action <http://www.manning.com/templier/>
>> Blog: http://garygregory.wordpress.com
>> Home: http://garygregory.com/
>> Tweet! http://twitter.com/GaryGregory
>>
>>
>
>
> --
> E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
> Java Persistence with Hibernate, Second 
> Edition<http://www.manning.com/bauer3/>
> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
> Spring Batch in Action <http://www.manning.com/templier/>
> Blog: http://garygregory.wordpress.com
> Home: http://garygregory.com/
> Tweet! http://twitter.com/GaryGregory
>



-- 
E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
Java Persistence with Hibernate, Second Edition<http://www.manning.com/bauer3/>
JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
Spring Batch in Action <http://www.manning.com/templier/>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory

Reply via email to