* @throws TwitterException when provided string is not a valid JSON string.
* @since Twitter4J 2.1.7
*/
public static RateLimitStatus createRateLimitStatus(String rawJSON) throws TwitterException {
try {
JSONObject json = new JSONObject(rawJSON);
return rateLimitStatusConstructor.newInstance(json);
} catch (InstantiationException e) {
throw new TwitterException(e);
} catch (IllegalAccessException e) {
throw new AssertionError(e);