semvec/pypi-packages huggingface dataset:
GetJsonValue 0.0.5
Gets the value in the JSON data

### **GetJsonValue**
pip install GetJsonValue

from GetJsonValue import jsonvalue

user_dict = {
        "sites":
            [
                { "name":"runoob" , "url":"www.runoob.com" },
                { "name":"google" , "url":"www.google.com" },
                { "name":"weibo" , "url":"www.weibo.com" }
            ]
    }
    
r = jsonvalue.get(user_dict,'url')

print(r)

output: ['www.runoob.com', 'www.google.com', 'www.weibo.com']

user_json = '{ "sites": [ { "name":"runoob" , "url":"www.runoob.com" }, { "name":"google" , "url":"www.google.com" }, { "name":"weibo" , "url":"www.weibo.com" } ] }'

r = jsonvalue.get(user_dict,'url')

print(r)

output: ['runoob', 'google', 'weibo']

user_dict = {"sites": "{ \"name\":\"google\" , \"url\":\"www.google.com\" }"}

r = jsonvalue.get(user_dict,'name')

print(r)

output: google