title: Is there anyway to interpolate from within JSON in an XCode Objective-C project?
body: <p>I have some JSON which contains names of classes for instantiation, and I am trying to avoid typos causing things to blow up.</p>
  
  <p>I am wondering if there is anyway I can interpolate strings or constants inside the JSON so that it can be less error prone...</p>
  
  <p>For example:</p>
  
  <pre><code>{ "stuff": [
             { "class": "foo" } ] }
  </code></pre>
  
  <p>If this were ruby and I could make this file.json.erb would be able to do something like:</p>
  
  <pre><code>{ "stuff": [
             { "class": "&lt;%= FOO_CONSTANT %&gt;" }] }
  </code></pre>
  
  <p>...</p>
  
  <p>I am wondering if there's any way I can do something remotely similar with XCode and Objective-C</p>