/** * Constructs a Status object from rawJSON string. * * @param rawJSON raw JSON form as String * @return Status * @throws TwitterException when provided string is not a valid JSON string. * @since Twitter4J 2.1.7 */ public static Status createStatus(String rawJSON) throws TwitterException { return TwitterObjectFactory.createStatus(rawJSON); }
private void subjectFromStatus(String tweet, Datasource datasource) { try { status = TwitterObjectFactory.createStatus(tweet); } catch (TwitterException e) { log.error("Not a valid json string: {}, {}", tweet, e.getErrorMessage());