prepare for json parse