firstprayer / undict

Easy API for using Dictionary

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

undict

Easier API for using Dictionary, especially with json

Replace

first_friend_age = json.loads(json_string)['friends'][0]['facebook_user']['personal_info']['age']

with

from undict import undict
first_friend_age = undict(json.loads(json_string)).friends[0].facebook_user.personal_info.age

About

Easy API for using Dictionary

License:MIT License


Languages

Language:Python 100.0%