May 21, 2019, 10:54:29 PM

Author Topic: JSON parser for NG?  (Read 167 times)

Offline Yellownakji

  • Full Member
  • ***
  • Posts: 216
  • Whoop-de-doo-ba-dooo!
JSON parser for NG?
« on: April 06, 2019, 11:16:59 PM »
Is there a module for JSON support?  I've seen modules like "rjson.mod", but they're not NG compatible; The latest BMK has a fit.

If there is a mod, it would save me a lot of time.  Otherwise, i'm just gonna make a JSON destroyer because i'm NOT writing a JSON parser. *barfs* ::)

Online Derron

  • Hero Member
  • *****
  • Posts: 2083
Re: JSON parser for NG?
« Reply #1 on: April 07, 2019, 06:22:28 AM »
Brl.json (NG)
https://github.com/bmx-ng/brl.mod/tree/master/json.mod

You should have it if you use an updated BlitzMax NG installation.


Bye
Ron

Offline Yellownakji

  • Full Member
  • ***
  • Posts: 216
  • Whoop-de-doo-ba-dooo!
Re: JSON parser for NG?
« Reply #2 on: April 07, 2019, 09:49:15 PM »
Brl.json (NG)
https://github.com/bmx-ng/brl.mod/tree/master/json.mod

You should have it if you use an updated BlitzMax NG installation.


Bye
Ron

Thanks for this.   No, i only really have the modules in need.   I went to the "modules" sticky, but i didn't see JSON anywhere, except RJSON which is broken.  I'll be sure to look in the default modules from now on, first.   I ended up writing a destroyer, however.

Thanks.

Offline Matty

  • Hero Member
  • *****
  • Posts: 632
    • MattiesGames
Re: JSON parser for NG?
« Reply #3 on: April 08, 2019, 02:33:10 AM »
Interesting...I just had to write a json parser for work in a language that didn't currently accept json files (only reads standard text files)....took me 7 hours from design on paper to implementation as an 'include'...not blitzmax code so not really helpful...but still..working on this at the same time as you asked about it.


Offline Yellownakji

  • Full Member
  • ***
  • Posts: 216
  • Whoop-de-doo-ba-dooo!
Re: JSON parser for NG?
« Reply #4 on: April 08, 2019, 03:29:33 AM »
Interesting...I just had to write a json parser for work in a language that didn't currently accept json files (only reads standard text files)....took me 7 hours from design on paper to implementation as an 'include'...not blitzmax code so not really helpful...but still..working on this at the same time as you asked about it.

Yeah, based on how JSON is formatted, i knew it would be some time before i had an ACTUAL parser written and i didn't see any, at the time, for blitzmax.   I ended up writing a destroyer, which takes a lot of the syntax crap, converts it to my own method and then spits out what i want.