JSON-test refactored.