Adds 'json' as a conditional runtime dependency