[json] Created an error by not making all subclasses public
Merge pull request #699 from pkriens/master

[json] Created an error by not making all subclasses public