improve testcase for deserializeJson
reverted change from pull request 400, because this broke testcase 2615