Add write to .json