fix optionality of JSON dependency

we need to use 'require' - 'use' is compile-time, regardless of
location.

Change-Id: Ie341dde2467206563e6995e1e7f8f3686fcdd8fa
Reviewed-by: Orgad Shaneh <orgads@gmail.com>