Added ability for JsonModel to accept variables via \JsonSerializable

This will allow JsonModel to accept via setVariables() an array delivered though jsonSerialize()