Title: Patch to support JSON API?
Last modified: August 21, 2016

---

# Patch to support JSON API?

 *  [ndugger](https://wordpress.org/support/users/ndugger/)
 * (@ndugger)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/patch-to-support-json-api/)
 * So, I am using [http://wordpress.org/support/view/plugin-reviews/json-api](http://wordpress.org/support/view/plugin-reviews/json-api)
   to grab the content from the wordpress blog and display it on a different website.
   Works beautifully, and grabs all custom_fields from ACF. However, when it reaches
   the custom field for the image crop add-on, all it gives are the image ID’s for
   the original, and the cropped.
 * `{"original_image":"52","cropped_image":53}`
 * What would work for that would be if you feed it the URL to the cropped image,
   instead.
 * If this support/patch could be added in, that would be amazing!
 * [https://wordpress.org/plugins/acf-image-crop-add-on/](https://wordpress.org/plugins/acf-image-crop-add-on/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [andersthorborg](https://wordpress.org/support/users/andersthorborg/)
 * (@andersthorborg)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/patch-to-support-json-api/#post-4867015)
 * Hi ndugger,
 * Thanks for input.
 * I’ll look into this.
 * A temporary solution would be for you to create a filter, that uses the `get_field`-
   method before the image data is returned, instead of just returning the raw data.
 * – Anders
 *  Thread Starter [ndugger](https://wordpress.org/support/users/ndugger/)
 * (@ndugger)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/patch-to-support-json-api/#post-4867047)
 * Something I just noted, is that I get returned the attachment of the original
   image, but not the cropped image, simply because it isn’t attached to the post,
   the cropper simply puts it into the media library.
 * Perhaps the easiest solution would be for you to attach it to the post when it
   gets cropped?
 *  Plugin Author [andersthorborg](https://wordpress.org/support/users/andersthorborg/)
 * (@andersthorborg)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/patch-to-support-json-api/#post-4867056)
 * Good point. The cropped image should be attached to the post as well. I am going
   to look into this as soon as I have the time.
 *  Thread Starter [ndugger](https://wordpress.org/support/users/ndugger/)
 * (@ndugger)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/patch-to-support-json-api/#post-4867061)
 * Awesome, thanks! By the way, your plugin is awesome. I needed exactly what it
   does. Props to you!
 *  Plugin Author [andersthorborg](https://wordpress.org/support/users/andersthorborg/)
 * (@andersthorborg)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/patch-to-support-json-api/#post-4867068)
 * Thanks. I’m glad you find it useful! 🙂

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Patch to support JSON API?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/acf-image-crop-add-on_e1e1e1.svg)
 * [Advanced Custom Fields: Image Crop Add-on](https://wordpress.org/plugins/acf-image-crop-add-on/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/acf-image-crop-add-on/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/acf-image-crop-add-on/)
 * [Active Topics](https://wordpress.org/support/plugin/acf-image-crop-add-on/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/acf-image-crop-add-on/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/acf-image-crop-add-on/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [andersthorborg](https://wordpress.org/support/users/andersthorborg/)
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/patch-to-support-json-api/#post-4867068)
 * Status: not resolved