looks like I needed addSlashes outside json_decode