Hi Jimmy,
JSON doesn't support comments, but you can create a dummy
variable called _comment and put your debugging messages there,
right in the JSON. An unused variable won't mess up your inventory
data.
Another option is to use the syslog facility for whatever
language you're writing the inventory script in.
In bash, it would be :
$ logger "spam and eggs happened"
Cheers,
Hugo