Fixing JsonParser.get_state to return proper metric type

Change-Id: Idad85003f7ecf916b8abce2f0c1a4e47bf2d62f3