replace json string concating with array  encoded