JSON parser/encoder for Lua Parses JSON using LPEG for speed and flexibility. Depending on parser/encoder options, various values are preserved as best as possible.
The docs say that you can customize the value that the library uses to represent null values. I've been trying to figure out how this can be achieved, but I'm not having any luck.
Here's what I'm trying, however, this still returns a function to represent null values instead of nil.
The docs say that you can customize the value that the library uses to represent null values. I've been trying to figure out how this can be achieved, but I'm not having any luck.
Here's what I'm trying, however, this still returns a function to represent null values instead of nil.
Can you tell me how to change the value used to represent null values?