title: Can I host JSON file in Spring Cloud Config Server?
body: <p>We are using Spring Cloud Config Server to host all configurations for our Spring Boot applications. We want a huge JSON text to be retrieved from the Config Server. </p>
  
  <p>Our current approach is to define the json text as a property value</p>
  
  <pre><code>myproperty.jsontext="{'name':'value'}"
  </code></pre>
  
  <p><strong><em>Apart from defining the JSON text as a property value, is there any way to host &amp; fetch it from the config server ?</em></strong></p>
  
  <p>Does Spring Cloud Config Server support a .json file ?  </p>
  
  <p>Update (additional Question):</p>
  
  <p>Can i access the searchLocations property as follows ?</p>
  
  <pre><code>@Value("${spring.cloud.config.server.native.searchLocations}
  </code></pre>
  
  <p>while acessing, we keep getting the following error</p>
  
  <pre><code>Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder 'spring.cloud.config.server.native.searchLocations' in string value "${spring.cloud.config.server.native.searchLocations}"
  </code></pre>