Modified portal code to use the common org.json package instead of using its own.