Removing an unneeded ASSERT in tojson
Adding JSON to the regression tests