WordPress 6.3 with datatables – cannot seem to pass json from php to javascript
This is because the response from MapBox’s API is a string, which is then passed to wp_json_encode. e.g. echo wp_json_encode( [ ‘fs_tileset_data’ => ‘this is already a JSON string’ ] ); This is the cause of the problem, it’s not 5256 rows of unset data, it’s a double JSON encoded string that’s 5256 characters long, … Read more