tl24 / jsonexserializer

Automatically exported from code.google.com/p/jsonexserializer
1 stars 1 forks source link

Provide Aliases and Naming Strategy #49

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Allow the use of a naming strategy which will control how reflection 
property names get turned into JSON properties.

For instance using a camelCase naming strategy would cause this class:

public class MyClass {
  public int MyProperty { get; set; }
}

to get turned into this JSON

{ "myProperty": 0 }

Also allow aliasing a property using the JsonExProperty attribute.

public class MyClass {
  [JsonExProperty(Alias="my_property")]
  public int MyProperty { get; set; }
}

{ "my_property": 0 }

Original issue reported on code.google.com by elliott....@gmail.com on 26 Sep 2009 at 2:19

GoogleCodeExporter commented 9 years ago

Original comment by elliott....@gmail.com on 4 Oct 2009 at 2:35

GoogleCodeExporter commented 9 years ago
Release 3.1

Original comment by elliott....@gmail.com on 16 Apr 2010 at 3:51