title: Loading error LibGDX/Scene2d
body: <p>I am getting this:</p>
  
  <blockquote>
    <p>Exception in thread "LWJGL Application"
    com.badlogic.gdx.utils.SerializationException: Error reading file:
    ui/skin.json</p>
  </blockquote>
  
  <p>I am trying to load a skin for my scene2D ui, completely failing at it.</p>
  
  <p>Anyway, when I go to the class, that error gets thrown within the load method, so it's a loading problem right?</p>
  
  <p>Also, why is it not loading?</p>
  
  <pre><code>@Override
  public void show() {
  
      // Creates our atlas from our png file containing all the sprites
      atlas = new TextureAtlas("ui/atlas.atlas");
  
      // Create a stage, everything goes on the stage
      stage = new Stage();
      // A skin for the stage
      skin = new Skin(Gdx.files.internal("ui/skin.json"), atlas);
  </code></pre>
  
  <p>The file is there, named exactly, project cleaned, refreshed and re-imported. Even tried moving it to just the assets folder. Just keeps tossing an error.</p>
  
  <p>This is my json file:</p>
  
  <pre><code>{
  
      "com.badlogic.gdx.graphics.Color": {
          "white": { "r": 1, "g": 1, "b": 1, "a": 1 },
          "black": { "r": 0, "g": 0, "b": 0, "a": 1 },
          "red": { "r": 1, "g": 0, "b": 0, "a": 1 },
          "green": { "r": 0, "g": 1, "b": 0, "a": 1 },
          "blue": { "r": 0, "g": 0, "b": 1, "a": 1 }
      },
  
      "com.badlogic.gdx.graphics.g2d.BitmapFont": {
          "fontSFNightly": { "file": "fonts/fontSFNightly.fnt" }
      },
  
      "com.badlogic.gdx.scenes.scene2d.ui.Label$LabelStyle": {
          "heading": { "font": "fontSFNightly", "fontColor": "white" }
      },
  
      "com.badlogic.gdx.scenes.scene2d.ui.TextButton$TextButtonStyle": {
          "mainMenu": { "up": "button.up", "down": "button.down", "pressedOffsetX": 1, "pressedOffsetY": -1 }
  
      }
  
  }
  </code></pre>
  
  <p>Fairly straight forward, following dermetfans videos so I can learn more about program structure and what not, this is starting to get on my nerves tho lol</p>