Jquery.css() accepts JSON key:values as properties ?? whats the advantage ?

Jquery.css() accepts JSON key:values as properties ?? whats the advantage ?

guys given the following snippet of HTML : 

  1. <div class="doit">Click Me</div>
and the following snippets of Jquery 


EXAMPLE ONE
  1. $(document).ready(function(){
  2. $('.doit').css({ "color" : "red"});
  3. });
EXAMPLE TWO

  1.       $(document).ready(function(){
  2. $('.doit').css( "color" , "red");
  3. });

BOTH Have the same effect , so whats so efficient about using the 1st method ?? Whats the advantage ??