I tried to parse your JSON into this and got an error that you have bad escaped characters (backslash must be escaped).
Taking into account Vinod Dalvi’s comment, the definition of json_encode
in WordPress is wrapped by function_exists()
. I guess if you have PHP version of 5.2 or above (which I think you have, because you can use json_decode
outside WordPress), the WordPress defined json_decode()
won’t be used.
Related Posts:
- How to: Rest endpoint returning empty object
- get all products of one category
- Generate dynamic page through data from another page
- Why does wp_remote_post returns an empty body response on certain endpoints?
- How to enqueue or include json file to a plugin
- wordpress JSONAPI introspector always limits number at 10?
- wordpress is adding a second backslash when I use addslashes
- Plugin Development: Storing and Manipulating Data That Fits JSON in Database
- How to write a shopping queue line plugin with a queue button?
- Showing results from json-string in WordPress search results page
- GET request return value as error instead of success
- ajax response strips multidimensional array and unable to decode
- Developing a plugin, ran it through P3 Profiler, shows up slow, but I don’t know why
- Is it possible to make WordPress as a RESTful app?
- oneOf two possible objects in WP REST API?
- Programmatically creating posts based on external JSON feed (asynchronously)
- How to make a WordPress plugin translation ready?
- How many times will this code run? (or, how rich is grandma?)
- Is the new WordPress 3.1 admin bar pluggable and how can I extend it?
- How to properly validate data from $_GET or $_REQUEST using WordPress functions?
- Using filters and actions for plugin API?
- Check for success of $wpdb->update() correctly
- Save Plugin Version Number as Option?
- Add a jQuery function to admin pages
- Catch own Exceptions
- How to change post status in hook?
- Including file or library from other plugin
- Custom endpoint that returns an xml
- Checking for existence of a page by title?
- Do uploaded plugins get updates if they came from the wordpress plugin directory?
- Why isn’t the Settings API designed to work for plugins using custom admin menus? [duplicate]
- Is there any reason only 1 (my) IP would be added to this table using $wpdn->insert?
- How to init an addon correctly after the main plugin?
- How to store data for posts/pages built with drag-n-drop builder?
- WP rest api v2 posts filter by ‘search’ & ‘category_name’ not working
- Order of Operation for these three hooks
- How to disable “Transform to” option in Gutenberg custom blocks
- Best practice for creating a custom archive template for a custom taxonomy which works on all themes?
- save_post hook not triggered in WP v3.6.1
- How to create a Tools menu on the Network Admin dashboard from a plugin
- Where should I put “run once” plugin pages?
- Initial help with official “create a block” tutorial
- Update/insert only a column of database table
- Execute Hook on the footer or header after activating a plugin
- Can wp_list_comments output into variable?
- Plugin Development Output
- SMS registration and login [closed]
- Enqueueing stylesheets on particular plugin admin pages using WordPress Plugin Boilerplate
- Adding Second Plugin Author
- Securing/Escaping Output of file content – reading via fread() in PHP
- Run code once when block is created
- Logout users upon login, based on caps/role?
- Intermittent database errors when accessing WordPress database
- How to create a “View” page for entry in add_menu_page wordpress admin area (CRUD operation)
- Customize WooCommerce my account dashboard through plugin
- Precaching WordPress posts with a ServiceWorker
- Shortcode returning localized HTML part
- Custom WordPress Plugin will install new and not update
- get_option() will not work without access to wp-config.php
- register_activation_hook on multisite
- Use ‘get’ form action within a WordPress plugin admin page
- Template directory in plugin
- WordPress Admin Login Custom Logo
- A question about add_action()
- How to display the categories on page using shortcode?
- add_action pre_term_description vs. pre_category_description
- How to Get Rid of Unwanted Backslashes in WordPress Form Input inside admin menu option
- WordPress plugin cron working only if admin is logged in
- How to Customize Polylang Language Items
- Enqueue scripts inside a class in a plugin
- Redirect User to custom URL after registering
- Create a Plugin to Download Files from Web to Server
- WP plugin repository didn’t parse readme.txt correctly
- “Rendering of admin template [path to template] failed”
- Allow REST API Endpoint to specific user and hide from public
- Adding a dropdown on the user admin
- Check current URL is 404 in pre_option_stylesheet filter hook
- I’m including a html file in my plugin, but it can’t find its css or js files
- How to show content in the body with my plugin (only in frontend not backend)?
- Metabox types list
- Problem in plugin debuging in wordpress
- OOP development and hooks
- How to include files in the loop via ajax
- mutiple shortcode instance on the same page
- Some data has already been output, can’t send PDF file – fpdf issue in WordPress
- Can i use one wp plugin inside other?
- Plugin or Custom Page Type
- Pluigin Migration – I need to move a single plugin to a different website
- Login using /wp-admin doesn’t redirect back to /wp-admin
- What do “and” means infront of a variable? [closed]
- Dropdown pages in Settings API
- Detect each active instance of a widget
- Plugin version not updated with new version
- Fatal error: Call to a member function query() on a non-object 3.6.1
- Fetch the input type date value via ajax
- Data Validation, dynamically generated fields (select for example)
- Why isn’t my readme.txt file being read
- How to update WordPress Plugins in your own maintance application?
- register_setting registered with incorrect data type
- Set srcset on a block image