Check for nulls and empty strings when JSON serializing and deserializing

Added null and empty string checks to the serialize/deserialize methods in JsonStringSerializer and added a couple of unit tests to verify.