Title: Getting Wrong JSON Format in API Calls
Last modified: March 23, 2017

---

# Getting Wrong JSON Format in API Calls

 *  [thilakharley](https://wordpress.org/support/users/thilakharley/)
 * (@thilakharley)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/getting-wrong-json-format-in-api-calls/)
 * Hi,
 * We are developing a mobile application with the help of your API [documentation](https://woocommerce.github.io/woocommerce-rest-api-docs/?shell#retrieve-product-reviews).
 * When I try to get product_reviews by API call, The API documentation JSON output
   format and the Realtime Output format are totally different.
 * Our output format is,
 * {
    “product_reviews”:[{ “id”: 9, “created_at”: “2015-05-07T13:01:25”, “review”:“
   This will go great with my Hoodie that I ordered a few weeks ago.”, “rating”:
   5, “reviewer_name”: “Stuart”, “reviewer_email”: “stuart@example.com”, “verified”:
   false, “_links”: { “self”: [ { “href”: “[https://example.com/wp-json/wc/v1/products/162/reviews/9&#8221](https://example.com/wp-json/wc/v1/products/162/reviews/9&#8221);}],“
   collection”: [ { “href”: “[https://example.com/wp-json/wc/v1/products/162/reviews&#8221](https://example.com/wp-json/wc/v1/products/162/reviews&#8221);}],“
   up”: [ { “href”: “[https://example.com/wp-json/wc/v1/products/162&#8221](https://example.com/wp-json/wc/v1/products/162&#8221);}]}}]}
 * Let us know why this happens. How can we get the exact JSON return Object?

The topic ‘Getting Wrong JSON Format in API Calls’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [thilakharley](https://wordpress.org/support/users/thilakharley/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/getting-wrong-json-format-in-api-calls/)
 * Status: not resolved