Json deps

Fix failing unit tests, declare dependency on json package.