14,958
edits
| Line 2: | Line 2: | ||
== Syntax error, malformed JSON == | == Syntax error, malformed JSON == | ||
Possible causes | Possible causes | ||
* the input is empty or multiple white spaces | * the input is empty entirely or multiple white spaces | ||
* the input contains [[Byte order mark]] (BOM)<ref>[https://blog.longwin.com.tw/2013/11/php-json_decode-null-fix-2013/ PHP json_decode() 傳回 NULL 的解法 | Tsung's Blog]</ref> | * the input contains [[Byte order mark]] (BOM)<ref>[https://blog.longwin.com.tw/2013/11/php-json_decode-null-fix-2013/ PHP json_decode() 傳回 NULL 的解法 | Tsung's Blog]</ref> | ||