add JSON support for varselect