summary refs log tree commit diff
path: root/src/libstd/json.rs
AgeCommit message (Collapse)AuthorLines
2012-07-04convert doc-attributes to doc-comments using ↵Gareth Daniel Smith-7/+7
./src/etc/sugarise-doc-comments.py (and manually tweaking) - for issue #2498
2012-07-02rustc: Implement a new resolve pass behind a compile flagPatrick Walton-0/+1
2012-07-01Convert to new closure syntaxBrian Anderson-9/+9
2012-06-30Eliminate usages of old sugared call syntaxBrian Anderson-4/+4
2012-06-29Switch the compiler over to using ~[] notation instead of []/~. Closes #2759.Michael Sullivan-44/+44
2012-06-25Make vectors uglier ([]/~). Sorry. Should be temporary. Closes #2725.Michael Sullivan-35/+35
2012-06-13Add a couple more to_json impls.Erick Tryzelaar-0/+12
2012-06-12Fix json no-implicit-copy warningsErick Tryzelaar-105/+118
2012-06-12std: Add a to_str impl for json::error.Erick Tryzelaar-0/+6
2012-05-28std: add json::to_str and json::to_json iface.Erick Tryzelaar-0/+105
2012-04-23Move map iface over to more `for`-friendly iteration methodsMarijn Haverbeke-2/+2
2012-03-26Bulk-edit mutable -> mut.Graydon Hoare-6/+6
2012-03-16core: Store reexporting result and either. Closes #1997Brian Anderson-1/+1
2012-03-14std: Rename the hashmap constructors to conform to new standardsBrian Anderson-2/+2
Instead of using the new_ prefix just name them after their type
2012-03-14annotate libstd and start enforcing mutabilityNiko Matsakis-17/+18
2012-03-13Name types after their modules instead of 't'Brian Anderson-13/+13
2012-03-10Use loop instead of while(true) in libraries and compiler itselfTim Chevalier-5/+5
And remove spurious fails/unreachable() calls.
2012-03-09std: Convert to rustdocBrian Anderson-37/+8
2012-03-07stdlib: Stop incurring vtable dispatch costs when hashmaps are usedPatrick Walton-1/+2
This required changing almost all users of hashmaps to import the hashmap interface first. The `size` member in the hashmap structure was renamed to `count` to work around a name conflict.
2012-03-07Revert "stdlib: Stop incurring vtable dispatch costs when hashmaps are used"Patrick Walton-2/+1
This reverts commit f0250a23d3fa2f8b4a4a4113ca89e41945a4cfed.
2012-03-07stdlib: Stop incurring vtable dispatch costs when hashmaps are usedPatrick Walton-1/+2
This required changing almost all users of hashmaps to import the hashmap interface first. The `size` member in the hashmap structure was renamed to `count` to work around a name conflict.
2012-03-05std: export json::error.Erick Tryzelaar-0/+1
2012-03-02std: add a io::with_str_reader fn to remove a str copyErick Tryzelaar-1/+1
2012-02-29libstd: Skip trailing whitespaces after JSON valueTycho Sci-12/+9
2012-02-29libstd: Skip trailing whitespaces after outer rparenTycho Sci-2/+15
This makes "{ \"foo\": 1 }\n" and "[ 1 ]\n" valid json string
2012-02-28std: rewrite json.rs to fix bugs and use readers/writersErick Tryzelaar-214/+653
Our json implementation did not conform to the spec, and was missing support for escpaed characters and exponental numbers. This fixes it, and adds support for reading/writing json directly from/to a stream. There are two things left unimplemented. We could use a "to_json" iface/impl, but that really needs traits to cut down on code duplication. The other is it wouldn't be that not that hard to turn this implementation into a event driven parser like YAJL, but I ran into some type-inference bugs, so I cut that out. It'd be nice to revisit this in the future though.
2012-02-23Finish cleanup of core::strMarijn Haverbeke-4/+0
Closes #1849
2012-02-23(core::str) remove len_bytes aliasKevin Cantu-12/+12
2012-02-23(core::str) replace byte_index[_from] with index[_from]Kevin Cantu-10/+10
2012-02-23(core::char) rename slice -> slice_charsKevin Cantu-9/+10
2012-02-23(core::str) mostly rename len -> len_charsKevin Cantu-10/+10
2012-02-12(core::str) rename byte_len -> len_bytes and rename char_len -> lenKevin Cantu-12/+12
2012-02-01Rename str::char_slice -> str::sliceKevin Cantu-9/+9
2012-02-01Propagating unsafe::slice 1Kevin Cantu-3/+3
2012-01-31Change option::t to optionTim Chevalier-8/+8
Now that core exports "option" as a synonym for option::t, search-and- replace option::t with option. The only place that still refers to option::t are the modules in libcore that use option, because fixing this requires a new snapshot (forthcoming).
2012-01-19lib: ";" to "," in enumsPatrick Walton-6/+6
2012-01-19stdlib: "tag" -> "enum"Patrick Walton-1/+1
2012-01-17libstd: Move std tests into libstdBrian Anderson-0/+55
2012-01-11Implement std::map as an iface/impl instead of an objMarijn Haverbeke-1/+1
2011-12-22json: to_str() also for "null"Lenny222-0/+1
2011-12-22json: add "null"Lenny222-0/+11
2011-12-16reorder args to the various vec, option fns so blk comes lastNiko Matsakis-1/+1
2011-12-16Make 1.f parse as a field access on the integer 1Marijn Haverbeke-4/+4
A dot is only considered part of a number when not followed by a letter Closes #1306
2011-12-13Copy first batch of material from libstd to libcore.Graydon Hoare-1/+1
2011-12-06Establish 'core' library separate from 'std'.Graydon Hoare-0/+258