[#37] Regex flags support in JSON. Fixes #37