diff --git a/wsdata_simple_json.wsdata.processor.inc b/wsdata_simple_json.wsdata.processor.inc
index 3bbe619..822e604 100644
--- a/wsdata_simple_json.wsdata.processor.inc
+++ b/wsdata_simple_json.wsdata.processor.inc
@@ -7,6 +7,12 @@ class wsdata_simple_json_processor extends WsData {
     if (!isset($data) || empty($data)) {
       return;
     }
+
+    // Remove UTF-8 BOM if present, json_decode() does not like it.
+    if(substr($data, 0, 3) == pack("CCC", 0xEF, 0xBB, 0xBF)) {
+      $data = substr($data, 3);
+    }
+
     $data = trim($data);
     return json_decode($data, TRUE);
   }
