Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import json
- # some JSON:
- json_data = json.dumps({
- "result":[
- {
- "run":[
- {
- "action":"stop"
- },
- {
- "action":"start"
- },
- {
- "action":"start"
- }
- ],
- "find": "true"
- }
- ]
- })
- item_dict = json.loads(json_data)
- print len(item_dict['result'][0]['run'])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement