try JSON encode decode