title: Import and using javascript library in backbone.js project
body: <p>I'm newbie to <code>backbone.js</code> and <code>require.js</code>. Currently I create one backbone project.
  Here is <code>app.js</code> code :</p>
  <pre><code> define([
    'jquery',
    'underscore',
    'backbone',
    'script',
    'router'
  
   ], function($, _, Backbone, Script, Router){
  
   var initialize = function(){
      Router.initialize();
   };
  
   return {
      initialize: initialize
   };
  
  });
  </code></pre>
  <p>Here is <code>main.js</code>:</p>
  <pre><code>require.config({
  path: {
      jquery: 'libs/jquery/jquery-min',
      underscore: 'libs/underscore/underscore-min',
      backbone: 'libs/backbone/backbone-min',
      script: 'libs/scripts/index'
  },
  
  shim:{
      backbone: ['jquery', 'underscore'],
      script: ['jquery'],
      enforceDefine: true
  }
  });
  
  require([
  
  'app',
  
  ], function(App){
  
  App.initialize();
  
  });
  </code></pre>
  <p>And the last one is <code>router.js</code> :</p>
  <pre><code>define([
    'jquery',
    'underscore',
    'backbone',
    'script'
  ], function($, _, Backbone){
  
  var AppRouter = Backbone.Router.extend({
  
      routes:{
        
          '*actions': 'defaultAction'
      }
  
  });
  
  var initialize = function(){
      var app_router = new AppRouter;
      app_router('route:defultAction', function(actions){
  
      });
  
      Backbone.history.start();
  };
  
   return {
      initialize: initialize
   };
  });
  </code></pre>
  <p>I want to add <a href="http://code.google.com/p/jquery-json/" rel="nofollow noreferrer">jquery-json library</a> to my project. If in <code>html project</code>, here is my code :</p>
  <pre><code>&lt;script type=&quot;text/javascript&quot; src=&quot;jquery-min.js&quot;&gt;&lt;/script&gt;
  &lt;script type=&quot;text/javascript&quot; src=&quot;jquery.json-2.4.min.js&quot;&gt;
  
  &lt;/script&gt;
  &lt;script&gt;
  
       function serializeObjToJSON(_obj) {
           var _json = $.toJSON(_obj);
           return _json;
       }
  
       function deserializeJSONToObj(_json) {
           var _obj = $.evalJSON(_json);
           return _obj;
       }
          
  &lt;/script&gt;
  </code></pre>
  <p>I want to import the library above and using it in my backbone project. But I have no idea how to do that.</p>
  <p>Any help would be much appreciated, thank you.</p>