[PATCH v3 3/3] unit: add JSON unit test