createJSON now uses foreach so that when a parallel backend is
registered it will run faster.