# Best way to store key-value pairs in plugin settings?

**URL:** <https://meta.discourse.org/t/best-way-to-store-key-value-pairs-in-plugin-settings/68059>\
**Category:** Development\
**Created:** [15 أغسطس 2017، 6:47ص UTC](https://meta.discourse.org/t/best-way-to-store-key-value-pairs-in-plugin-settings/68059 "2017-08-15T06:47:58Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![john-lynch](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/john-lynch/32/81514_2.png) [@john-lynch](https://meta.discourse.org/u/john-lynch)\
**Post date:** [17 أغسطس 2017، 6:39ص UTC](https://meta.discourse.org/t/best-way-to-store-key-value-pairs-in-plugin-settings/68059/4 "2017-08-17T06:39:24Z")

</div>

I wanted to get an initial version out the door, so I have deferred going with this heavy-weight route, and opted for having the user enter a string of JSON to configure the supported kaomoji replacements. It’s clunky, but it works.

In any case, I have the plugin live on my server now. You can find it [here](https://github.com/john-lynch/discourse-kaomoji). I welcome any feedback. I’m a web, Rails, and Discourse newb, so I’m eager to learn. I did my best to ape the practices of other popular plugins. Thanks for your help.

---

_[View the full topic](https://meta.discourse.org/t/best-way-to-store-key-value-pairs-in-plugin-settings/68059)._
