adding /json handler