title: Write to Json using libGDX
body: <p>I am new to Json and libGDX but I have created a simple game and I want to store player names and their scores in a Json file. Is there a way to do this? I want to create a Json file in <code>Gdx.files.localStorage</code> if it doesnt exist and if it does, append new data to it.</p>
  
  <p>I have checked code given at :</p>
  
  <p>1><a href="https://code.google.com/p/steigert-libgdx/source/browse/trunk/tyrian-game/src/com/blogspot/steigert/tyrian/domain/Profile.java?spec=svn18&amp;r=19" rel="nofollow" title="link">Using Json.Serializable to parse Json files</a></p>
  
  <p>2><a href="http://jackyjjc.com/2013/10/07/parsing-json-in-libgdx-tutorial/" rel="nofollow" title="link 2">Parsing Json in libGDX</a></p>
  
  <p>But I failed to locate how to actually create a Json file and write multiple unique object values (name and score of each player) to it. Did I miss something from their codes?</p>
  
  <p>This <a href="http://openglized.blogspot.in/2013/06/reading-and-parsing-json-file-with.html" rel="nofollow">link</a> mentions how to load an existing json but nothing else.</p>