Json deserialization working properly. Also, refactored condition operators to be an enumerated type