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.2.tar.gz
(7.5 kB
view hashes)
Built Distribution
Close
Hashes for Getvalues-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c07078bfbb746fe8811ebea785dd7ca0f3d892dab5b7ffb4ac50304e2f0ad530 |
|
MD5 | e4d95422656836d27d841d995af2c303 |
|
BLAKE2b-256 | 09757bb489720b19bfa856b6084d5d3e1add366c849dd447b435fe910b038ef0 |