fixing non empty constructor error with JSON deserialization