add .json functionality