Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added convenience methods and accompanying tests to the Json class.
Fixed some styling issues with trailing whitespace. - Removed redundant functions. - Renamed `get` to `find` - Renamed `get_path` to `find_path` - Renamed `find` to `search` - Changed as_object and as_list to return Object and List rather than the underlying implementation types of TreeMap<~str,Json> and ~[Json] - Refactored find_path to use a fold() instead of recursion Formatting fixes. Fixed spacing, deleted comment. Added convenience methods and accompanying tests to the Json class. Updated tests to expect less pointer indirection.
- Loading branch information
Showing
1 changed file
with
247 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9e0cfa2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
saw approval from alexcrichton
at zslayton@9e0cfa2
9e0cfa2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merging zslayton/rust/json-nav = 9e0cfa2 into auto
9e0cfa2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
zslayton/rust/json-nav = 9e0cfa2 merged ok, testing candidate = 3bede9f
9e0cfa2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all tests pass:
success: http://buildbot.rust-lang.org/builders/auto-mac-32-opt/builds/4669
success: http://buildbot.rust-lang.org/builders/auto-mac-32-nopt-c/builds/2511
success: http://buildbot.rust-lang.org/builders/auto-mac-32-nopt-t/builds/2510
success: http://buildbot.rust-lang.org/builders/auto-mac-64-opt/builds/4666
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-c/builds/3766
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-t/builds/3772
success: http://buildbot.rust-lang.org/builders/auto-linux-32-opt/builds/4681
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-c/builds/3769
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-t/builds/3775
success: http://buildbot.rust-lang.org/builders/auto-linux-64-opt/builds/4683
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-c/builds/3769
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-t/builds/3774
success: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android/builds/3842
success: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android-t/builds/1660
success: http://buildbot.rust-lang.org/builders/auto-win-32-opt/builds/4678
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-c/builds/3779
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-t/builds/3786
success: http://buildbot.rust-lang.org/builders/auto-bsd-64-opt/builds/4442
9e0cfa2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fast-forwarding master to auto = 3bede9f