1
Fork 0
mirror of https://github.com/RGBCube/JsonWrapper synced 2025-07-27 11:47:45 +00:00

Update README.md

This commit is contained in:
RGBCube 2022-01-30 11:45:05 +03:00 committed by GitHub
parent c5a2c5de55
commit 0c5550d57e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,7 +19,7 @@ If the pathmagic kwarg is given, (if str)it will split it by the +'s and make di
* value (`Any`): The value for the key value pair. * value (`Any`): The value for the key value pair.
* pathmagic (`Union[str, List[str]]`, optional): The path to follow. Defaults to `""`. * pathmagic (`Union[str, List[str]]`, optional): The path to follow. Defaults to `""`.
#### [Example Usage]() TODO #### [Example Usage](https://github.com/RGBCube/json-wrapper/blob/main/examples/set.py)
## *def* `get(key: str, *, default=None, pathmagic: Union[str, List[str] = "")` ## *def* `get(key: str, *, default=None, pathmagic: Union[str, List[str] = "")`
Returns the key's value in the json. Will return the default kwarg if not found. Returns the key's value in the json. Will return the default kwarg if not found.