Fixed JSON parseing for /snippet