added json mode to website