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
- WP Rest API: details of latest post including featured media url in one request?
- Getting user meta data from WP REST API
- How can I get users email (and additional data) from the rest API?
- Increase per_page limit in REST API
- How to stop WP API endpoint from caching?
- Create a new user using WP REST API and declare meta object
- Can’t send emails through REST API
- WordPress Rest API – Get all posts based on post_meta on custom endpoint
- How to login to WordPress site using basic authentication HTTP headers?
- WP Rest API convert permalink to post ID for fetch
- How to filter users on custom meta fields in WP JSON v2?
- How can I return an image from a custom REST API endpoint?
- Check Password Strength using WordPress API
- Send request to WordPress REST API
- Request to REST endpoint works fine in browser and curl, but fails from WP_REST_Request
- Rest API in integration tests – filtering by slug not working?
- How do you format the set_body option for WP_Rest_Request?
- REST : how do you handle the rest_no_route error?
- is it possible to filter a rest api endpoint by using a registered rest field?
- How to create a post using REST API with sending data as a JSON body?
- rendering view in backbone
- Update a post based on results from GET request to another server
- Loop Performance > JSON files vs. WP_Query vs. REST API
- Check authentication credentials using WP REST API
- WordPress REST API V2: how to get list of all posts?
- Getting 401 from ajax using an application password
- WordPress REST API calls that depend on the WordPress User
- How to get data from /wp-json/wp/v2/users/me
- WordPress REST API parameters are not affecting a response
- Update meta_value in wp_postmeta using API
- WP_REST_Response – How to return Gzip answer and add Content-encoding header?
- WordPress plugin with CORS
- Disable and Hide WP-JSON
- Create multiple pages with tables from json file
- “Error: cURL error 60: SSL certificate problem: certificate has expired” when create product in WooCommerce via REST API
- How to use WordPress REST api to login a user?
- Need wp rest api for featured video post
- WordPress output data to another website and pull data
- Need to forward Data from WooCommerce Webhook sent to same site WordPress REST API custom endpoint
- REST api header link href
- WordPress & React Native
- update meta data (like view counter) by rest-api
- How Can I keep password protected posts in the json requests but not on frontend queries?
- How to block external access to register_rest_route callback?
- Filter output of posts (Rest API)
- WordPress Application Passwords not authorizing
- Hide custom posts from certain taxonomy in rest api
- Creating Application Password using REST API results in 401 regardless of JWT token