changed visibility of JSONObjects to protected