Add ability to pass :quirks_mode to json/json_pure with specs

assigned to me, I suppose