added parse json option and test