improved support for json tags 

fix for issue #86, handle “-“ and some other cases. includes a test for the outputted json.