Mock sets/gets JSON values.