Adding rewrite rule for JSON versions of laws. Fixing up the TXT rule too.  #369