# Simple example of typedInput with type JSON?

**URL:** <https://discourse.nodered.org/t/simple-example-of-typedinput-with-type-json/7248>\
**Category:** Developing Nodes\
**Created:** [25 January 2019 16:52 UTC](https://discourse.nodered.org/t/simple-example-of-typedinput-with-type-json/7248 "2019-01-25T16:52:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ScottChapman](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/scottchapman/32/4838_2.png) [@ScottChapman](https://discourse.nodered.org/u/ScottChapman)\
**Post date:** [25 January 2019 16:52 UTC](https://discourse.nodered.org/t/simple-example-of-typedinput-with-type-json/7248/1 "2019-01-25T16:52:04Z")

</div>

I'm building (one of) my first nodes, and I want to have a configuration property that accepts valid JSON.

I know I need to use the `typedInput` mechanism for this, but I am having difficulty finding a **_simple_** example of it that I can model my node after.

Anyone have/know of a simple example I can look at (could be any of the supported types)?

---

<div class="post-metadata">

**Author:** ![cinhcet](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cinhcet/32/438_2.png) [@cinhcet](https://discourse.nodered.org/u/cinhcet)\
**Post date:** [25 January 2019 17:11 UTC](https://discourse.nodered.org/t/simple-example-of-typedinput-with-type-json/7248/2 "2019-01-25T17:11:45Z")

</div>

> [@TypedInput Widget](https://discourse.nodered.org/t/typedinput-widget/6894):
>
> Hi, Node-RED provides a nice editor widget for selecting and defining for example payload types as strings, numbers, JSON (with editor) etc. In case you want to do it yourself, here a little example node. js file module.exports = function(RED) { "use strict"; function simpleChange(config) { RED.nodes.createNode(this, config); var node = this; node.config = config; node.on('input', function(m) { m.payload = RED.util.evaluateNodeProperty(node.config.changeValue,…
