Make JsonWriter actually open file for output in write mode