summaryrefslogtreecommitdiff
path: root/src/pkg/json
AgeCommit message (Collapse)AuthorFilesLines
2012-04-06Imported Upstream version 1upstream/1Ondřej Surý13-3539/+0
2011-09-19Imported Upstream version 60.1upstream/60.1Ondřej Surý7-23/+183
2011-09-13Imported Upstream version 60upstream/60Ondřej Surý11-0/+3379
2011-09-13Imported Upstream version 60Ondřej Surý9-3167/+0
2011-08-03Imported Upstream version 59upstream/59Ondřej Surý4-13/+19
2011-04-28Imported Upstream version 2011.04.27upstream/2011.04.27Ondřej Surý5-35/+48
2011-04-26Imported Upstream version 2011.04.13upstream/2011.04.13Ondřej Surý4-94/+113
2011-04-20Imported Upstream version 2011.03.07.1upstream/2011.03.07.1Ondřej Surý3-24/+129
2011-02-18Imported Upstream version 2011.02.15upstream/2011.02.15Ondřej Surý1-3/+2
2011-02-14Imported Upstream version 2011-02-01.1upstream/2011-02-01.1Ondřej Surý4-15/+7
2011-01-17Imported Upstream version 2011.01.12upstream/2011.01.12Ondřej Surý8-79/+227
2010-06-21reflect: add Type.Bits method, add tags to prohibit conversionsRuss Cox2-2/+2
gob: substitute slice for map R=r CC=golang-dev http://codereview.appspot.com/1699045
2010-06-20reflect: add Kind, remove Int8Type, Int8Value, etc.Russ Cox2-104/+5
update other code to match. R=r CC=golang-dev http://codereview.appspot.com/1680044
2010-06-08misc cleanup: gofmt + &x -> x[0:] conversionRuss Cox1-1/+1
R=gri CC=golang-dev http://codereview.appspot.com/1620042
2010-05-11json: fix array -> non-array decodingRuss Cox2-19/+30
Fixes issue 773. R=adg CC=golang-dev http://codereview.appspot.com/1120042
2010-05-08json: accept escaped slash in string scannerMichael Hoisie2-1/+2
R=rsc CC=golang-dev http://codereview.appspot.com/1173041 Committer: Russ Cox <rsc@golang.org>
2010-04-27json: delete obsolete codeRuss Cox3-452/+0
R=r CC=golang-dev http://codereview.appspot.com/943047
2010-04-27json: streamingRuss Cox3-0/+308
R=r, cw CC=golang-dev http://codereview.appspot.com/952041
2010-04-27json: preserve field name case by defaultRuss Cox3-127/+164
This matches the old JSON package behavior. All lowercase names are not as standard as I believed, and it seems less surprising to need to write type T struct { Field string "field" } to get lower case (behavior after this CL) than it does to need to write type T struct { Field string "Field" } to preserve the case (behavior before this CL). Also test and fix unmarshal into non-nil interface value or pointer. Fixes issue 744. R=r CC=golang-dev http://codereview.appspot.com/1013041
2010-04-21json: Marshal, Unmarshal using new scannerRuss Cox8-1021/+1540
R=r CC=golang-dev http://codereview.appspot.com/953041
2010-04-18json: scanner, Compact, Indent, and testsRuss Cox4-0/+1002
This is the first of probably four separate CLs for the new implementation of the json package. The scanner is the core of the new implementation. The other CLs would be the new decoder, the new encoder, and support for JSON streams. R=r CC=golang-dev http://codereview.appspot.com/802051
2010-04-11json: update documentation to match current coding styleChristopher Wedgwood1-6/+6
R=rsc CC=golang-dev http://codereview.appspot.com/888045 Committer: Russ Cox <rsc@golang.org>
2010-04-01json: use panic/recover to handle errors in MarshalAndrew Gerrand1-36/+21
R=r, gri CC=golang-dev http://codereview.appspot.com/872041
2010-03-17json: add MarshalIndent (accepts user-specified indent string)Andrew Gerrand2-52/+184
Fixes issue 661 R=r, rsc, skorobo CC=golang-dev http://codereview.appspot.com/576042
2010-02-22json: fix quoted strings in MarshalSergei Skorobogatov2-29/+85
R=rsc CC=golang-dev http://codereview.appspot.com/217047 Committer: Russ Cox <rsc@golang.org>
2010-01-06Propagate error to the caller in json.Marshal. Fixes issue 445.Ivan Krasin2-6/+21
R=rsc, imkrasin CC=golang-dev http://codereview.appspot.com/179125 Committer: Russ Cox <rsc@golang.org>
2010-01-05Check for errors when writing fields of a struct.Rob Pike1-1/+5
R=rsc CC=golang-dev, jack.palevich http://codereview.appspot.com/183109
2009-12-22json: fix doc commentRuss Cox1-1/+1
R=gri CC=golang-dev http://codereview.appspot.com/179128
2009-12-151) Change default gofmt default settings forRobert Griesemer6-373/+373
parsing and printing to new syntax. Use -oldparser to parse the old syntax, use -oldprinter to print the old syntax. 2) Change default gofmt formatting settings to use tabs for indentation only and to use spaces for alignment. This will make the code alignment insensitive to an editor's tabwidth. Use -spaces=false to use tabs for alignment. 3) Manually changed src/exp/parser/parser_test.go so that it doesn't try to parse the parser's source files using the old syntax (they have new syntax now). 4) gofmt -w src misc test/bench 3rd set of files. R=rsc CC=golang-dev http://codereview.appspot.com/180048
2009-12-09remove uses of string concatenation from src and misc directoryRobert Griesemer1-7/+7
R=rsc http://codereview.appspot.com/172041
2009-12-09json package: Fixed handling of nil valuesRoss Light2-1/+15
Fixes issue 400. R=golang-dev, rsc http://codereview.appspot.com/167058 Committer: Russ Cox <rsc@golang.org>
2009-12-02apply gofmt to json filesRobert Griesemer2-5/+3
R=rsc http://codereview.appspot.com/164071
2009-11-30json: Decode into native Go data structuresSergey 'SnakE' Gromov6-419/+261
This patch adds an ability to convert JSON-encoded data into a hierarchy of Go's native data types. R=rsc CC=golang-dev http://codereview.appspot.com/161060 Committer: Russ Cox <rsc@golang.org>
2009-11-30Handle \r as a whitespace when parsing JSON string.Andrew Skiba2-1/+12
Fixes issue 272. R=rsc http://codereview.appspot.com/161061 Committer: Russ Cox <rsc@golang.org>
2009-11-24Change to container/vector interface:Robert Griesemer1-1/+1
- removed New(len int) in favor of new(Vector).Resize(len, cap) - removed Init(len int) in favor of Resize(len, cap) - runs all.bash Fixes issue 294. R=rsc, r, r1 http://codereview.appspot.com/157143
2009-11-24A quick fix to ensure that json.Marshal returns errors correctly, as well as ↵Michael Hoisie2-5/+34
some error-related tests R=rsc http://codereview.appspot.com/157151 Committer: Russ Cox <rsc@golang.org>
2009-11-23json: expose map in generic representationRuss Cox2-0/+7
R=r, r1 http://codereview.appspot.com/157146
2009-11-23go: makes it build for the case $GOROOT has whitespacesSergio Luis O. B. Correia1-2/+2
the bash scripts and makefiles for building go didn't take into account the fact $GOROOT / $GOBIN could both be directories containing whitespaces, and was not possible to build it in such a situation. this commit adjusts the various makefiles/scripts to make it aware of that possibility, and now it builds successfully when using a path with whitespaces as well. Fixes issue 115. R=rsc, dsymonds1 http://codereview.appspot.com/157067 Committer: Russ Cox <rsc@golang.org>
2009-11-20gofmt -r 'α[β:len(α)] -> α[β:]' -w src/cmd src/pkgRuss Cox2-4/+4
R=r, gri CC=golang-dev http://codereview.appspot.com/156115
2009-11-19Add json.Marshal to json packageMichael Hoisie2-0/+143
R=rsc CC=golang-dev http://codereview.appspot.com/157068 Committer: Russ Cox <rsc@golang.org>
2009-11-13json: minor comment fix.Adam Langley1-1/+1
I screwed up and didn't write one of the code review changes to disk before submitting. TBR=rsc R=rsc http://codereview.appspot.com/154122
2009-11-13json: allow one to unmarshal a top-level JSON array.Adam Langley2-2/+43
Fixies issue 114. R=rsc CC=golang-dev http://codereview.appspot.com/154121
2009-11-13json: fix addressing of slice indexes that are multiples of 8.Adam Langley2-1/+32
Fixes issue 147. R=rsc CC=golang-dev http://codereview.appspot.com/152123
2009-11-11json: support \u escaping in stringsAdam Langley2-12/+28
Fixes issue 73. R=rsc CC=golang-dev http://codereview.appspot.com/154072
2009-11-09- replaced gofmt expression formatting algorithm withRobert Griesemer2-5/+5
rsc's algorithm - applied gofmt -w misc src - partial CL (last chunk) R=rsc, r http://go/go-review/1024041
2009-11-09remove semis after statements in one-statement statement listsRobert Griesemer5-109/+109
R=rsc, r http://go/go-review/1025029
2009-11-06- fine-tuning of one-line func heuristic (nodes.go)Robert Griesemer3-82/+28
- enabled for function declarations (not just function literals) - applied gofmt -w $GOROOT/src (look for instance at src/pkg/debug/elf/elf.go) R=r, rsc CC=go-dev http://go/go-review/1026006
2009-11-05gofmt-ify io, json, runtime, encodingRobert Griesemer2-27/+28
R=rsc http://go/go-review/1017056
2009-11-01allow unpacking of json map into Go map,Russ Cox4-47/+111
now that reflection supports it. R=r http://go/go-review/1015008
2009-10-06apply gofmt to go, gob, hash, http, image, io, json, logRuss Cox5-163/+213
R=gri DELTA=1359 (138 added, 32 deleted, 1189 changed) OCL=35408 CL=35420