Assert on json stringify code path.