Fixed jsonparser memory allocation