use regex to convert json as string with label to a valid json to clean prerecorded value former syntax