# Simple API mapper

**URL:** <https://community.n8n.io/t/simple-api-mapper/614>\
**Category:** Questions\
**Created:** [January 7, 2020, 1:58pm UTC](https://community.n8n.io/t/simple-api-mapper/614 "2020-01-07T13:58:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gregorski74](https://avatars.discourse-cdn.com/v4/letter/g/e480ec/32.png) [@Gregorski74](https://community.n8n.io/u/Gregorski74)\
**Post date:** [January 7, 2020, 1:58pm UTC](https://community.n8n.io/t/simple-api-mapper/614/1 "2020-01-07T13:58:15Z")

</div>

Is there a node which is a simple JSON mapper (i.e node receives JSON and reformats it to different JSON by providing mapping of element names from-\>to and maybe format conversion, then calls an API with the resulting mapped content?

---

<div class="post-metadata">

**Author:** ![jan](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jan/32/9_2.png) [@jan](https://community.n8n.io/u/jan)\
**Post date:** [January 7, 2020, 3:05pm UTC](https://community.n8n.io/t/simple-api-mapper/614/2 "2020-01-07T15:05:53Z")

</div>

Sounds for me like the “Rename Keys” Node could help you with the mapping:

> **[n8n](https://n8n.io/integrations/n8n-nodes-base.renameKeys)**
>
> n8n is an extendable workflow automation tool which enables you to connect anything to everything via its open, fair-code model.

If you want to change the format, a Set-Node would probably be best. You can simply set the key-name (can be the same as it is right now) and then reference the current value with an expression. In that expression you can then use the JavaScript functions `parseInt`, `parseFloat` or `.toString`.

Hope that helps!
