# Problem of JSON Fields in Plugin Response-Transformer

**URL:** <https://discuss.konghq.com/t/problem-of-json-fields-in-plugin-response-transformer/4174>\
**Category:** Questions\
**Created:** [August 7, 2019, 9:12am UTC](https://discuss.konghq.com/t/problem-of-json-fields-in-plugin-response-transformer/4174 "2019-08-07T09:12:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BruceWangNo1](https://avatars.discourse-cdn.com/v4/letter/b/bc79bd/32.png) [@BruceWangNo1](https://discuss.konghq.com/u/BruceWangNo1)\
**Post date:** [August 7, 2019, 9:12am UTC](https://discuss.konghq.com/t/problem-of-json-fields-in-plugin-response-transformer/4174/1 "2019-08-07T09:12:26Z")

</div>

So I have been trying this plugin by reading this post: [https://docs.konghq.com/hub/kong-inc/response-transformer/#examples](https://docs.konghq.com/hub/kong-inc/response-transformer/#examples)  
The problem I encountered is that I want to transform the response to something like {“code”: -1} and I tried “config.add.json”:[“code:-1”], but the response becomes {“code”, “-1”}, -1 turning out to be a string.  
Does anyone have any idea on how to fix this?
