grails-plugins / grails-rest-client-builder

REST client plugin that uses Spring's RestTemplate
http://grails.org/plugin/rest-client-builder
Apache License 2.0
65 stars 32 forks source link

"class" property propagated to the request #12

Open snowindy opened 11 years ago

snowindy commented 11 years ago

Hello,

When sending post data like this

def resp = rest.post(url){
    auth login, password
    contentType "application/json"
    json {
        user
    }
}

I see that the output contains "class" property. {"class":"org.icc.callrz.BusinessCard.BusinessCard", ...

I think this should be optional, can you please add a setting to disable this property propagation?