json cache for lua