Title: Plugin changes JSON array structure for REST endpoints; Site Kit Incompatibility
Last modified: June 26, 2024

---

# Plugin changes JSON array structure for REST endpoints; Site Kit Incompatibility

 *  Resolved [benbowler](https://wordpress.org/support/users/benbowler/)
 * (@benbowler)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/plugin-changes-json-array-structure-for-rest-endpoints-site-kit-incompatibility/)
 * Good morning,
 * Users of the Site Kit plugin have reported crashes in the plugin, when investigating
   the issue we found that it only occurs when Transliterator plugin is installed
   and this has been confirmed two users and via test sites.
 * The issue appears to be that the json_encoded output of our plugins REST endpoint,
   when updated, are being restructured. Arrays are instead being converted to numerically
   keyed objects:
 *     ```wp-block-code
       "totals":[{}]
       ```
   
 * becomes:
 *     ```wp-block-code
       "totals":{"0":{}}
       ```
   
 * [Notes here on the request.](https://github.com/google/site-kit-wp/issues/8442#issuecomment-2191272317)
 * I took a quick look at the plugin code and couldn’t immediately see where in 
   the code this is likely to be happening. Are you able to fix this issue?
 * Best.
 * Ben

Viewing 1 replies (of 1 total)

 *  Plugin Author [Ivijan-Stefan Stipic](https://wordpress.org/support/users/ivijanstefan/)
 * (@ivijanstefan)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/plugin-changes-json-array-structure-for-rest-endpoints-site-kit-incompatibility/#post-17887732)
 * Hello,
 * Thank you for pointing this out, I didn’t know the plugin was causing these problems.
   Could we somehow get in touch and debug together to avoid problems and resolve?
   
   For first aid, you can turn off the “Force transliteration for WordPress REST
   API” option in the plugin, if you don’t need it.Thanks!

Viewing 1 replies (of 1 total)

The topic ‘Plugin changes JSON array structure for REST endpoints; Site Kit Incompatibility’
is closed to new replies.

 * ![](https://ps.w.org/serbian-transliteration/assets/icon-256x256.png?rev=2374607)
 * [Transliterator – Multilingual and Multi-script Text Conversion](https://wordpress.org/plugins/serbian-transliteration/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/serbian-transliteration/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/serbian-transliteration/)
 * [Active Topics](https://wordpress.org/support/plugin/serbian-transliteration/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/serbian-transliteration/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/serbian-transliteration/reviews/)

## Tags

 * [compatability](https://wordpress.org/support/topic-tag/compatability/)

 * 1 reply
 * 2 participants
 * Last reply from: [Ivijan-Stefan Stipic](https://wordpress.org/support/users/ivijanstefan/)
 * Last activity: [1 year, 11 months ago](https://wordpress.org/support/topic/plugin-changes-json-array-structure-for-rest-endpoints-site-kit-incompatibility/#post-17887732)
 * Status: resolved