嘿,我需要一个正则表达式来用空替换匹配的字符串。
我有以下json
{"session":{"convener_id":null,"convergence":false,"created_at":"2012-06-02T10:00:00","event_id":null,"id":42,"name":"Test Session","next_steps":"","notes":"","room":null,"status":0,"summary":"","time":"10:0","updated_at":"2013-06-03T11:49:45.3397898+05:30","people":null,"comments":null,"convener":null}}
我需要一个 json 来将空属性替换为空,这样我就没有任何空属性。如果任何属性为空,只需删除该属性。我知道正则表达式可以解决问题,但我并不精通正则表达式。