Init json query on for empty records