Improved exceptions and simplified JsonProviderFactory.