0

My Python code version 2.7.8 is

#Dictionary
ST['ST010'] = 'st010', 'PUN', ['A', 'B', 'C']
ST['ST011'] = 'st011', 'POL', ['AA', 'BB', 'CC', 'D', 'F']
layer = ST['ST010'][0] 
key = ST['ST010'][1]
field = ST['ST010'][2]

Now, i want read dictionary ST form json file

How to write the json file ? How to write code python for set dictionary ?

Thank you

1

1 Answer 1

0

You can use the python json library for parsing json.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.