# Request Transformer

**URL:** <https://discuss.konghq.com/t/request-transformer/3571>\
**Category:** General\
**Created:** [May 20, 2019, 12:17am UTC](https://discuss.konghq.com/t/request-transformer/3571 "2019-05-20T00:17:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![saravana](https://avatars.discourse-cdn.com/v4/letter/s/71c47a/32.png) [@saravana](https://discuss.konghq.com/u/saravana)\
**Post date:** [May 20, 2019, 12:17am UTC](https://discuss.konghq.com/t/request-transformer/3571/1 "2019-05-20T00:17:24Z")

</div>

Hi,

I created a plugin like below for a route.

curl -X PATCH --url “[http://localhost:8001/plugins/f18c32b9-418a-42e7-9356-8942a220f6a6](http://localhost:8001/plugins/f18c32b9-418a-42e7-9356-8942a220f6a6)” --data “name=request-transformer” --data “config.add.body=userId:test ,id:101, title:oth, body:koodh”

The JSON looks like below when posted,  
{  
“userId”: “test,id:101,title:oth,body:koodh”,  
}  
While I expect it to be,  
{  
“userId”: 1,  
“id”: 200,  
“title”: “oth”,  
“body”: “koodh”  
}  
Also how can I pass integer values if needed in this notation? Please dont recommend a custom plugin for this 🙂 Also can we use this plugin for nested Jsons?

Thanks.
