In Python, it's easy to get the value of a key in JSON
Project description
=================== Getvalues
在python中,轻松获取json中某个key的值。
In Python, it's easy to get the value of a key in JSON
- get属性
- a = {'a': 1,'b': {[{'c':2}]}}
- g = Getvalues.get('c', a)
- print(g) // [2]
author: puyihd@gmail.com
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Getvalues-0.1.1.tar.gz
(7.5 kB
view hashes)
Built Distribution
Close
Hashes for Getvalues-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b22b9a32b4306371ca01107949cee64998104d0414248ab900efddc9452c769 |
|
MD5 | 7ecf03190bb7e6db878367749bcc8119 |
|
BLAKE2b-256 | dd73a7b3c1b4c72d5902c8ae02e59e9e72475cc34820502d7b08c30a37eff4dd |