A Python automation task parses application settings supplied as JSON. Which approach is appropriate?

Published
  1. Use a JSON parser and validate the expected fields
  2. Execute the content as Python code
  3. Assume every input key exists without validation
  4. Split only on every comma without handling quoted strings

Comments — 0