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

Signed-off-by: Peter Kriens <peter.kriens@aqute.biz>