Added a JSON::fromString method.