add to a json file in parallel without losing keys.