Skip to main content

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


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)

Uploaded Source

Built Distribution

Getvalues-0.1.2-py3-none-any.whl (7.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page