title: How to set null object in properties file groovy?
body: <p>I am trying to set a object value to null in properties file but it is always being returned as string. Here is the sample code along with the properties file.</p>
  
  <pre><code>File propertiesFile = new File('/opt/config.properties')
  propertiesFile.withInputStream {
      properties.load(it)
  }
  
      **config.properties**
      spotConfig = null
  
  println properties.spotConfig
  </code></pre>
  
  <p>But when I am trying to print the above value, it is always returning string whereas I want it to print a null object. How can I do that in groovy? Any help appreciated!</p>