Fix json dependency issues