public static JsonResult of ( final Object object ) { final String json = JsonSerializer . create ( ) . deep ( true ) . serialize ( object ) ; return new JsonResult ( json ) ; }
Creates JSON result from given object . The object will be serialized to JSON .