【发布时间】:2020-12-10 14:32:32
【问题描述】:
我有一些 JSON。我怎样才能得到不为空的“价值”字段?我只想得到"value": "sun-icon" 和"value": "terracotta"
{
"line_items": [{
"properties": [{
"name": "Customization Cost",
"value": ""
},
{
"name": "Standard Bundle Label 1",
"value": "sun-icon"
},
{
"name": "Custom Bundle Label 1",
"value": ""
},
{
"name": "Bundle Color 1",
"value": "terracotta"
}
]
}]
}
【问题讨论】:
标签: ruby-on-rails json