Way to ensure that string is in JSON format

前端 未结 0 1207
北荒
北荒 2020-12-04 07:13

In an Ansible task I\'d like to test if string is json prior to use it with from_json.

fatal: [localhost]: FAILED! =>
  msg: |-
    the field \'args\' has          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题