bug fixing on JSON datatype when input value is json (not string)