OS functions available for user code?

Looking at encoding/decoding JSON on a Particle device.
Currently best practice as I understand it is using a char[] and encoding with snprintf() or use a library.

I looked to see what the firmware was using, and seems like there is already a very nice function do to that.
So any way to access system os firmware functions? Excluding the possibility of building and flashing your own firmware. Security and reliability, would be two good encompassing reasons that you can’t.

If no, exposing the JSON decoding/encoding seems useful, but beyond my ability to contribute.

1 Like

jsmn is not available to user applications.

You might be interested in this library, which is a wrapper around jsmn which makes it much easier to use and is much more memory-efficient than SparkJson/ArduinoJson.

5 Likes

Thanks

As everything gets better and faster, I don’t have to optimize every byte out so having a function/class twice is not going to affect actual use. I am still adjusting.

1 Like