don't most JSON fields use lower case, at least for the first letter? maybe that ...
14 years, 3 months ago
(2011-02-10 16:07:13 UTC)
#3
don't most JSON fields use lower case, at least for the first letter?
maybe that might be a better default, otherwise everyone will need
to tag most fields.
On Thu, Feb 10, 2011 at 11:07, <rogpeppe@gmail.com> wrote: > don't most JSON fields use ...
14 years, 3 months ago
(2011-02-10 16:08:54 UTC)
#4
On Thu, Feb 10, 2011 at 11:07, <rogpeppe@gmail.com> wrote:
> don't most JSON fields use lower case, at least for the first letter?
> maybe that might be a better default, otherwise everyone will need
> to tag most fields.
Some services use upper case, others do not.
Easier to have no mapping and override.
Needing to say
Foo int "Foo"
seems very wrong.
Russ
LGTM On 10 February 2011 16:08, Russ Cox <rsc@golang.org> wrote: > On Thu, Feb 10, ...
14 years, 3 months ago
(2011-02-10 16:11:57 UTC)
#5
LGTM
On 10 February 2011 16:08, Russ Cox <rsc@golang.org> wrote:
> On Thu, Feb 10, 2011 at 11:07, <rogpeppe@gmail.com> wrote:
>> don't most JSON fields use lower case, at least for the first letter?
>> maybe that might be a better default, otherwise everyone will need
>> to tag most fields.
>
> Some services use upper case, others do not.
> Easier to have no mapping and override.
>
> Needing to say
>
> Foo int "Foo"
>
> seems very wrong.
>
> Russ
>
Issue 4168043: code review 4168043: json: correct Marshal documentation
(Closed)
Created 14 years, 3 months ago by adg
Modified 14 years, 3 months ago
Reviewers:
Base URL:
Comments: 0