alloc initial jsmn value, minimize public api to a single function