Fix serializing strings as bool in inspect

There is no harm to use SetJson for all string fields
Fixes #6312
@LK4D4 @vieux why not put SetJson here as well?