implemented reference json type