adding neat trick to json strict compliance (no trailing comma)