Fix serializing strings as bool in inspect

There is no harm to use SetJson for all string fields
Fixes #6312