问题描述
我的 JSON 数据看起来像这样
<div class="col-12">
{{ form_label(form.expandedField) }}
{% for child in form.expandedField.children %}
<div class="group-15">
<div class="custom-control custom-checkBox custom-checkBox-primary">
{{ form_widget(child,{'attr': {'class': 'custom-control-input'}}) }}
<label class="custom-control-label" for="{{ child.vars.id }}" >{{ child.vars.label }}</label>
</div>
</div>
{% endfor %}
</div>
我希望未解析的 CSV 数据看起来像这样
品牌、型号、设备类别,
[{
make: "ABC",model: "XYZ",assetType: "type1",},{
make: "A",model: "X",assetType: "type2",}]
这里的重点是我想要为我的 JSON 数据定制标头,即一些对象键应该更改为大写,一些键应该用新标头替换。谢谢!
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)