json conv before we put to index