# HG changeset patch # User Carsten Grohmann # Date 1589026918 -7200 # Sat May 09 14:21:58 2020 +0200 # Node ID c803542156c5a88cf63b3c59d88c7aeadadb3725 # Parent 00c8bbbce3f4d3227913584f18ea92a4fcab8a16 Typos and rephrasing diff --git a/README.md b/README.md --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Simplify access to JSON structures by introduce a dotted access notation. The intended use case is to read JSON data once. The use is not limited to -JSON data. All data in a top level dictionary can be accessed. Use +JSON data. All data in a top-level dictionary can be accessed. Use dictionaries and lists to structure these data. The data - the leafs in this data tree - can be all kind of Python objects. @@ -24,7 +24,8 @@ ## Installation No installation is necessary. Add the file `JsonDottedReadAccess.py` to -your project and use it. Alternativly copy the whole directory and treat it as package. +your project and use it. Alternatively copy the whole directory and treat it +as package. ## Usage ### Convert JSON string to a Python object @@ -77,8 +78,7 @@ The individual elements are accessed via the description of the path, whereby the successive levels are connected by dots ("."). -Dictionary elements are accessed via keys and list elements via the numerical -index. +Access dictionary elements via keys and list elements via the numerical index. Access pattern: @@ -93,7 +93,7 @@ non_existing_destrict = j.get("cities.Dresden.non-existing", 42) ``` -More examples are shown on the section "Examples" +More examples are shown on the section "Examples". ## Examples ### Basic Example: Access JSON data @@ -188,8 +188,7 @@ The source code is at . -Comments, suggestions and patches are welcome and appreciated. Please send me -an email. +Comments, suggestions and patches are welcome and appreciated. Please email me. ## License