I have a string like this "*test1:*value1 *test2:* value2 *test3:**test4:*value4" I need to convert into JSON object(key-value pairs) in the below-shown structure.
output: { "test1":"value1",
"test2":"value2",
"test3":"";
"test4":"value4"}
when there is no value after the key, it must be replaced with the empty string.
Please help me with this.
thanks in advance..