Answers for "length of json object python"

0

length of json object python

import 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'])
Posted by: Guest on October-11-2021

Code answers related to "length of json object python"

Python Answers by Framework

Browse Popular Code Answers by Language