Home AMX Forum AMX General Discussion
Options

JSON Parser

For those looking for a JSON parser, here's a C -> NetLinx port of the fantastic jsmn parser.

https://github.com/ciasia/jsmn

The readme has the full rundown on what it does, however the brief version is it will token any valid JSON you can fit into a character array, letting you then parse in a way that suits your application. Some sample of building state machines around it's output can be found here. Rudimentary parsers where you iterate over tokens of more simplistic structures will work equally as well.

Comments

Sign In or Register to comment.