@@ 6,7 6,7 @@ JSON Dotted Read Access
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 @@ There are no additional requirements. Al
## 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 @@ non-existing items.
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 @@ destrict = j["cities.Dresden.2"]
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 project page is at <https://www.cars
The source code is at <https://sr.ht/~carstengrohmann/JsonDottedReadAccess>.
-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