Ignore JSON serializers which do not need to be serializable

Change-Id: Iccfe06495bc69d46c9c69e987776a39f824caf2f