str |
the JSON string to test |
whether the passed string is valid JSON. If libnm is not compiled with libjansson support, this check will also return true for possibly invalid inputs. If that is a problem for you, you must validate the JSON yourself. |