add cover json value function while get or set

add cover json value function while get or set 
we do not care if the value is json or not, we just using the 
angular.toJson and angular.fromJSON API
that works automaticly for us ;)