Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python json check if key exists

import json
  if 'id' not in dest:
      dest['id'] = -1
    targetId = dest['id']
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #json #check #key #exists
ADD COMMENT
Topic
Name
9+8 =