text: //
  //  ErizoClientIOS
  //
  //  Copyright (c) 2015 Alvaro Gil (zevarito@gmail.com).
  //
  //  MIT License, see LICENSE file for details.
  //
  
  #import "Utilities.h"
  
  @implementation NSDictionary (Utilities)
  
  + (NSDictionary *)dictionaryWithJSONString:(NSString *)jsonString {
      NSParameterAssert(jsonString.length > 0);
      NSData *data = [jsonString dataUsingEncoding:NSUTF8StringEncoding];
      NSError *error = nil;
      NSDictionary *dict =
      [NSJSONSerialization JSONObjectWithData:data options:0 error:&error];
      if (error) {
          NSLog(@"Error parsing JSON: %@", error.localizedDescription);
      }
      return dict;
  }
  
  + (NSDictionary *)dictionaryWithJSONData:(NSData *)jsonData {
      NSError *error = nil;
      NSDictionary *dict =
      [NSJSONSerialization JSONObjectWithData:jsonData options:0 error:&error];
      if (error) {
          NSLog(@"Error parsing JSON: %@", error.localizedDescription);
      }
      return dict;
  }
  
  @end