title: Dasherize properties for JSONAPI
body: <p>I have this model in my drf backend:</p>
  
  <pre><code>class Product:
  
      price_range = ...
  </code></pre>
  
  <p>I am using EmberData with the JSONApi serializer. I have just found out that JSON API requires dasherized properties. So I need to tell drf:</p>
  
  <pre><code>JSON_API_FORMAT_KEYS = 'dasherize'
  </code></pre>
  
  <p>And the property gets serialized in the <code>JSON</code> as:</p>
  
  <pre><code>price-range
  </code></pre>
  
  <p>Then, <code>EmberData</code> does its dance, and I get the <code>Ember</code> model property:</p>
  
  <pre><code>import DS from 'ember-data';
  
  export default DS.Model.extend({
      ...
      priceRange: DS.attr('number'),
      ...
  });
  </code></pre>
  
  <p>(the old <code>RESTSerializer</code> was expecting <code>priceRange</code> in the <code>JSON</code>, if I recall properly)</p>
  
  <p>So, we go from <code>price_range</code> -> <code>price-range</code> -> <code>priceRange</code> (which is pretty crazy if you ask me). I found all this by trial and error. For drf the corresponding settings are documented <a href="http://django-rest-framework-json-api.readthedocs.org/en/latest/usage.html#inflecting-object-and-relation-keys" rel="nofollow">here</a>.</p>
  
  <p>Where is this documented for <code>JSONApi</code>, <code>EmberData</code> and <code>Ember</code>? I would like to make sure I have really understood this, and that this is also the case for relationships. The related <code>drf</code> config setting would be:</p>
  
  <pre><code>JSON_API_FORMAT_RELATION_KEYS = 'dasherize'
  </code></pre>