JSON: fix crashes in ${extract jsons } and ${extract json {digits} }