1st step to send structure data to ui through json