JsonParser.parse() should not be used, but rather its equivalent static
methods should be invoked. Migrate tests to do so, fixing a few warnings
in the process.
Change-Id: I6bbfad51c584a5dc0e752bcbb1ed2ec3cdff483f Signed-off-by: Robert Varga <robert.varga@pantheon.tech>