improved support for json tags (fix for issue #86, handle “-“ and some other cases)