title: How to send json data to jQuery.css()
body: <p>I want to send json formatted data to jQuery.css() function, and i dont know how to do that.
  Later on, i will send more properties, this is just example of my problem.</p>
  
  <pre><code>//Sorry, this var x is actually string that i get when i print my json string
  var x = {"transform":"rotate(30deg)","-o-transform":"rotate(30deg)"}
  
  //If i try to do something like this wont work
  $("#mainImage").css(x);
  
  
  //but following works
  $("#mainImage").css({"transform":"rotate(30deg)","-o-transform":"rotate(30deg)"})
  </code></pre>
  
  <p>It probably has to do something that jquery accepts <code>.css( map )</code><br>
  A map of property-value pairs to set.</p>
  
  <p>And i am trying to send single text string, can i somehow convert json to map ?</p>
  
  <p>@Pekka Yes, i am sure that <code>$("#mainImage").css(x);</code> doesnt work.</p>
  
  <p>@Felix That is what i get by calling <code>json = JSON.stringify(data);</code> sorry if it not json data, i am js newbie..</p>