> ## Content Index
> Fetch the complete content index at: https://debugly.dev/llms.txt
> Use this file to discover other available public pages before exploring further.

# Unexpected token < in JSON at position 0 Means You Got HTML
- URL: https://debugly.dev/unexpected-token-json-position-0/
- Published: 2025-09-30T08:50:00.000Z
- Updated: 2026-10-17T05:49:36.000Z
- Description: The angle bracket is the first character of an HTML error page. Your API returned a page, not JSON, and here is how to find out which page.
- Author: Rohit Bhadani
- Tags: JavaScript, Error Autopsy, Node.js, Networking

| Error                                          | First character | Usually                                   |
| ---------------------------------------------- | --------------- | ----------------------------------------- |
| Unexpected token <                             | <               | HTML page                                 |
| Unexpected end of JSON input                   | nothing         | Empty body, often a 204                   |
| Unexpected token o in JSON at position 1       | o               | You called JSON.parse on an object        |
| Unexpected non-whitespace character after JSON | varies          | Two JSON documents concatenated, or a BOM |

---

Published on [debugly.dev](https://debugly.dev/) by [Rohit Bhadani](https://debugly.dev/about/) | Founder of [Krova Cloud](https://krova.cloud/?ref=debugly.dev)