["Release"] Bwoken JSON Parser

Discussion in '3DS - Homebrew Development and Emulators' started by WhoAmI?, Sep 3, 2015.

  1. WhoAmI?
    OP

    WhoAmI? PASTA's dirty animal

    Member
    1,273
    1,009
    Mar 15, 2015
    Poké Ball
    Yes. The parser somewhat works but there is two bugs:

    1. After finding the requested value, the rest of the JSON file is printed after it.
    2. If you call "parse_json" more than once, you'll crash back to the home menu.
    Feel free to improve and try to add it in your homebrews. The code looks crappy because I'm a total noob at C, so... Have fun with my bwoken JSON parser! :D I wouldn't recommend this as daily-driver code as it's pretty much useless with these bugs.

    Porn inside

    Worst source ever: https://github.com/lavanoid/3DS_JSON_Parser
     
    Last edited by WhoAmI?, Sep 3, 2015
    Margen67 likes this.
  2. Naked_Snake

    Naked_Snake Constant Miscreant

    Member
    1,135
    288
    Oct 6, 2013
    Hyrule Field
    What does this do
     
  3. WhoAmI?
    OP

    WhoAmI? PASTA's dirty animal

    Member
    1,273
    1,009
    Mar 15, 2015
    Poké Ball
    It reads a json file (used for storing configurations) and is meant to parse the values. In the current source code, it tries to find the value of "frequency". It finds the value BUT the rest of the JSON file gets outputted with it, for some reason.

    Basically, it's a configuration reader. Useful for applications who need configurable options. rxTools uses a JSON parser, which ACTUALLY works :/
     
    Naked_Snake likes this.
  4. josamilu

    josamilu GBAtemp Fan

    Member
    383
    213
    Feb 1, 2015
    Gambia, The
    Saturn is better than Jupiter :P
    Pretty neat stuff you made there, thanks ;)

    It can be used to make a weather app for example, which downloads a json file with the weather data, and prints out the data.
     
    Naked_Snake and WhoAmI? like this.
  5. yodamerlin

    yodamerlin Bok bok.

    Member
    309
    162
    Apr 1, 2014
    Judging by the descwiption, it is a bit bwoken fow nowmal use. But it can be impwoved to wowk cowwectly.
     
    AliTheAce, AtlasFontaine and WhoAmI? like this.
  6. WhoAmI?
    OP

    WhoAmI? PASTA's dirty animal

    Member
    1,273
    1,009
    Mar 15, 2015
    Poké Ball
    Yus. Yus wet cwan. It on GitWub for a weasons.
     
    josamilu likes this.