Added assertion to verify a json encoded string