Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

[13:01:38 CST(-0600)] <dmccallum54> http://static.springsource.org/spring/docs/3.1.x/spring-framework-reference/html/remoting.html#rest-mapping-json-converter

[13:02:32 CST(-0600)] <TonyUnicon> ok, thanks

[13:03:11 CST(-0600)] <dmccallum54> you'll see a little bit of Jackson serialization customization going on in org.jasig.ssp.transferobject.ServiceResponse

[13:03:31 CST(-0600)] <dmccallum54> i can also probably dig up a few other examples from other projects if you need 'em

[13:03:49 CST(-0600)] <TonyUnicon> do you know what the jackson default behavior is?

[13:04:01 CST(-0600)] <TonyUnicon> does the field name become the key?

[13:04:31 CST(-0600)] <TonyUnicon> it looks like that is the case

[13:05:06 CST(-0600)] <TonyUnicon> or maybe a better question

[13:05:17 CST(-0600)] <TonyUnicon> do you know a good breakpoint where I can see the response JSON?

[13:07:20 CST(-0600)] <dmccallum54> um

[13:07:47 CST(-0600)] <dmccallum54> i would probably start with MappingJacksonHttpMessageConverter#writeInternal

[13:07:52 CST(-0600)] <dmccallum54> or… better yet… chrome dev tools

[13:09:03 CST(-0600)] <dmccallum54> (and yes, i believe it's just mapping java property names to json field names http://wiki.fasterxml.com/JacksonFAQ#Data_Binding.2C_general )

[13:15:27 CST(-0600)] <TonyUnicon> thanks that should be enough to keep me rolling