title: Represent Classes in JSON
body: <p>I try to implement Transaction Classes into a JSON file. For an Example...</p>
  
  <pre><code>Holidays [Flights, Hotels, etc.]
  Groceries [Drinks, Food]
  Transportation [Car Taxes, Car Insurance, rental car, petrol]
  </code></pre>
  
  <p>How would i manage to do so?</p>
  
  <p>Could i define two classes and link them with IDs?</p>
  
  <pre><code>   categoryList: [
          {
              name: 'Holidays',
              id: 1000
          },  {
              name: 'Groceries',
              id: 1001
          },  {
              name: 'Transportation',
              id: 1002
          }
      ],
      subCategoryList: [
          {
              name: 'Flights',
              categoryId: 1000
          },  {
              name: 'Hotels',
              categoryId: 1000
          },  {
              name: 'Drinks',
              categoryId: 1001
          }, {
              name: 'Food',
              categoryId: 1001
          }, {
              name: 'Car Taxes',
              categoryId: 1002
          }, {
              name: 'Car Insurance',
              categoryId: 1002
          }, {
              name: 'Rental Car',
              categoryId: 1002
          }
      ]
  </code></pre>
  
  <p>I've bank transactions and would like to classify them by category's within my app.</p>