Embedding JSON Data into YAML file

后端 未结 5 2001
孤城傲影
孤城傲影 2020-12-13 16:52

I am writing a fixture for my table. And a one of the coloums takes in a JSON string as a value.

The problem is the fixture is not loading failing as:



        
5条回答
  •  臣服心动
    2020-12-13 17:43

    I believe taking it into quotes should do the trick:

    portslist: '[{"name":"ob1","port_type" ... }]'
    

提交回复
热议问题