Generalize has_json_member

Now works with all types T, not only classes. But only gives correct
result if json is public, not protected or private.

Closes #2