Ads displayed for guests and not donating members only. Get ad-free by donating. If you have already donated, please read here.
Results 1 to 6 of 6

Thread: Battle Results to JSON Parser

  1. #1

    Battle Results to JSON Parser

    Please help me - I would like to use your Battle Results to JSON Parser but I do something wrong, I think.

    I downloaded it and unpacked it to folder c:\test, where are some battleresults.
    I started it and received error:
    C:\test>C:\Python27\python.exe C:\test\wotbr2j.pyc C:\test\160839053356615500.dat
    ###### WoTBR2J 0.8.4.0
    Processing C:\test\160839053356615500.dat
    tanks.json does not exists!

    So I find tanks.json from your previous project ( WoT-Dossier-Cache-to-JSON) and saved it to c:\test
    Now I have different error:

    C:\test>C:\Python27\python.exe C:\test\wotbr2j.pyc C:\test\160839053356615500.dat
    ###### WoTBR2J 0.8.4.0
    Processing C:\test\160839053356615500.dat
    tanks.json cannot be loaded as JSON: No JSON object could be decoded

    What am I doing wrong?

  2. #2
    Retired Commander Phalynx.eu's Avatar
    Join Date
    Jan 2013
    Location
    Erlangen, Germany
    Posts
    2,127
    Seems the tanks.json is damaged, did you tried to redownload?

  3. #3
    Battle Results to JSON Parser
    http://www.vbaddict.net/content.php?...to-JSON-Parser
    WoT-BattleResult-To-JSON_084.zip

    does not include tanks.json file.

  4. #4
    Retired Commander Phalynx.eu's Avatar
    Join Date
    Jan 2013
    Location
    Erlangen, Germany
    Posts
    2,127
    Yes, because the most current version is always here:
    https://github.com/Phalynx/WoT-Dossi...ter/tanks.json

  5. #5
    Thank you, it works now.

    But I cannot find out how to converter json to xlm or csv - or import it to Excel or some database.
    Seems that this is not so eazy task...

  6. #6
    Retired Commander Phalynx.eu's Avatar
    Join Date
    Jan 2013
    Location
    Erlangen, Germany
    Posts
    2,127
    That is indeed not that easy. JSON is like XML a structured format. You would need some programm/script which is reading the needed values from JSON and store them as CSV.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •