tests/jsonutil: New test

Adding some basic coverage of the json parsing.