fix bug if in patterns default values is None and parse empty sting like...

... json