Turn out it is caused by a BOM character from one of my included file. If you are having same problem, you can save your file to Encode in UTF8 without BOM.
Related Posts:
- Custom endpoint to get all custom taxonomy terms
- What’s the right way to validate JSON data coming from an AJAX POST request?
- Why is my custom API endpoint not working?
- WordPress Rest API: How do we validate with our custom API key?
- authentication issue with rest api – rest_cannot_create
- WordPress 4.7 REST API endpoints
- wordpress wp-json prefix issue
- How to: Rest endpoint returning empty object
- Can I define multiple callback methods depending on the call method?
- WordPress REST API “rest_authentication_errors” doesn’t work external queries?
- Can’t GET draft posts via REST API from headless frontend
- Query the REST API for a Tag by slug
- Rest API Custom Endpoint with space character
- Formating content rendered from wordpress REST API as JSON and not HTML
- WordPress REST API – Modify JSON before importing
- Why does AWStats show /wp-json* as Viewed URLs
- Is there anyway to format my EndPoint URL in WordPress?
- How to order WordPress Rest API data
- WP Rest API – How to convert embedded to json object in Java [closed]
- featured image not found in json from wp rest api
- Custom Rest API POST endpoint with conditionally required parameters
- How to force JWT auth for default GET endpoints of WordPress rest api?
- WordPress Rest API custom endpoint for RSS feed
- WordPress JSON data to and from database to be shown on rest point
- How to Get Featured Image from REST API?
- If I use WordPress REST API V2 and someone makes an app using it. Will my site count the posts views from the APP? And if not, then how?
- How to connect android app with WordPress website?
- JSON – Create rest api endpoint for Advanced Custom Fields
- Custom WP API endpoint NULL body data
- Is there a way I can fetch the WordPress Developer Code References with an API?
- 403 error when publishing a post in wordpress. Error => Publishing failed. The response is not a valid JSON response
- Error message: Response is not a valid JSON response
- WordPress REST API not working on localhost
- DELETE request using WP REST API
- how to create JSON array [] for REST response?
- WP Rest API in Android studio does not show Images
- How do i POST to WordPress rest API from the same domain?
- How to receive JSON payload from a digital device
- WP CLI in WP 5.3 with PHP 7.4
- Get wordpress post with featured image, category and tag from WordPress API
- WordPress API “code”:”rest_no_route” with Custom Route
- How can I secure my custom rest api endpoint or add under a already existing rest group
- Autotrader API Integration
- REST API get featured image source for custom post type
- Fix Characters WordPress Ionic App
- Display Post Featured Image along with Categories via WP Rest API
- WordPress REST API not displaying all information
- WordPress Rest API Escapes Returned URLs Forward Slash
- Custom WP Rest API Endpoints from JSON Schema
- Securing REST API wp-json/wp/v2/users endpoint
- Delete row from table using custom endpoint via API
- WordPress json – How to use the content rendered from json
- How to get attributes from a post requested via the JSON API?
- How to call WordPress API Internally
- Transmit headers and footers via API from one site to another
- WordPress Rest Api search limited to 10 results
- trying to send request-body to rest_api custom csp-endpoint
- Building a custom REST API
- How would I add custom tables/endpoints to the WP REST API?
- WP REST API create post authentication issue
- Are there server performance benefits to fetching only specific fields when querying the REST API?
- How to define a query parameter with REST API?
- How do I correctly setup an AJAX nonce for WordPress REST API?
- Using the REST API (v2) javascript client on a private namespaced route
- WP Rest API v2 return posts with specific tag
- rest api authentication
- Does accessing WordPress via REST API affect the site stats and analytics?
- x-wp-nonce is not allowed by Access-Control-Allow-Headers in preflight response
- How to get around WP REST API per page limit without pagination?
- How to properly add custom entities in Gutenberg
- REST API custom endpoint without authentication for POST method?
- CORS & Remote access to WP via RestAPI
- Create Session with JWT
- WP API ignores filter parameter
- How to use REST API to send user metadata?
- Can the new REST API now make WP into it’s own push notification server?
- Confused about AngularJS and WordPress
- Post API tax_relation field doesn’t work
- How to post an unserialized array via wordpress rest API as meta data
- Use the backbone.js client to save custom post type meta
- Override WordPress POST REST API
- Creating a custom endpoint for rest, I see the endpoint exists in the wp-json, but the request is returning 404
- WordPress + Vue — Single page app giving me 404s when I use query params
- No ‘Access-Control-Allow-Origin’ when call rest API
- Get subscribers via REST API and send post notification
- Allow “wp-admin” edit access through headless WP web application
- body_class REST field in WP-API
- Is my WordPress site handing out sensitive information/misconfigured?
- Fetch post by author slug
- Cant POST with REST API on WordPress
- Calling a Rest API with parameters on button Click
- REST API custom endpoints for metaboxes
- Subscriber role cann’t add comment meta using REST API
- WordPress REST API function not calling from external site
- Issue with API after 6.2 update
- Verify user login and password over api
- All wp-json routes suddenly return 404
- Get rendered HTML single view from post template
- Modify request payload for Core API requests
- REST API not Posting Content in Draft Mode