read json first