Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added convenience methods to the Json class #12780

Merged
merged 1 commit into from
Mar 11, 2014
Merged

Commits on Mar 11, 2014

  1. 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.
    zslayton authored and Zack Slayton committed Mar 11, 2014
    5 Configuration menu
    Copy the full SHA
    9e0cfa2 View commit details
    Browse the repository at this point in the history