dinamic writePathJson with OS