Hey I need a regular expression to replace the matching string with empty.
I have below 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}}
I need a json to replace the null properties to empty so that I don't have any null properties. If any proeprties is null just remove that property. I know regular expression can do the tricks but I am not well versed in regular expression.
"field:"b{a{a:null") is not easy with regular expressions. Please check answer by Sam on balancing braces in all time favorite on regular expressiondelete obj.propertywhere it is null. Otherwise you will probably need to parse json, there is a project called JSON.NET that can help you.