# Setting from Json File

**URL:** <https://discuss.elastic.co/t/setting-from-json-file/18772>\
**Category:** Elasticsearch\
**Created:** [July 21, 2014, 7:10pm UTC](https://discuss.elastic.co/t/setting-from-json-file/18772 "2014-07-21T19:10:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![M\_20](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/m_20/32/1371_2.png) [@M\_20](https://discuss.elastic.co/u/M_20)\
**Post date:** [July 21, 2014, 7:10pm UTC](https://discuss.elastic.co/t/setting-from-json-file/18772/1 "2014-07-21T19:10:52Z")

</div>

Hi all,

I am trying to read the setting from Json file. Something like:

ImmutableSettings.settingsBuilder().loadFromSource( path );

But it seems "loadFromSource" doesn't work for this purpose.  
Could you please point me out the method?

Thanks

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/44cf6310-4e35-4c30-86ce-69a3660f1257%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/44cf6310-4e35-4c30-86ce-69a3660f1257%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 1:14am UTC](https://discuss.elastic.co/t/setting-from-json-file/18772/2 "2017-07-06T01:14:28Z")

</div>


