title: Nested ACF JSON data in WP REST API with custom post type
body: <p>I am using the following plugins to get JSON data from WordPress REST API:</p>
  
  <ul>
  <li>Advanced Custom Fields PRO (5.3.7)</li>
  <li>WP REST API (2.0-beta13)</li>
  <li>ACF to REST API (2.2.0)</li>
  <li>Custom Post Type UI (1.3.4)</li>
  </ul>
  
  <p>I have a custom post type "Case Study" created with the Custom Post Type UI plugin. I have a custom field group (through ACF) called "Case Study" that is only applied when the post type is Case Study.</p>
  
  <p>I also have a custom field group called Home that is applied to the Home page. One of the fields is "Featured Case Study". The field type is a Post Object and the "Filter by Post Type" is set to Case Study.</p>
  
  <p>So now I edit my Home page and I am able to attach a Case Study object to the Home page using the Featured Case Study select box.</p>
  
  <p>Via the WP REST API plugin I am able to get the Home page as JSON data and the ACF portion is provided via the ACF to REST API plugin. I can see all of the fields provided by ACF for the Home page.</p>
  
  <p>The "Show in REST API" setting for the Case Study custom post type is also set to True, so the Case Study I selected for the Home page is also part of the JSON data.</p>
  
  <p>So far, so good.</p>
  
  <p>The problem is that the ACF data for the selected Case Study is not present in the Home page JSON data. The case study post object is displayed with the default WordPress fields, albeit, as JSON, but the ACF data is not shown.</p>
  
  <p>I am able to get the selected Case Study by itself through the REST API and all desired fields are visible. It is only when this object is attached to the Home page that I am unable to see the ACF fields for it.</p>
  
  <p>Is there any way to get the ACF data for a custom post type that is attached to another ACF field?</p>