# JSON link array does not match link order in post

**URL:** <https://meta.discourse.org/t/json-link-array-does-not-match-link-order-in-post/57205>\
**Category:** Product Support\
**Created:** [10 בפברואר,‏ 2017,‏ 1:14pm UTC](https://meta.discourse.org/t/json-link-array-does-not-match-link-order-in-post/57205 "2017-02-10T13:14:11Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![samnazarko](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/samnazarko/32/109010_2.png) [@samnazarko](https://meta.discourse.org/u/samnazarko)\
**Post date:** [12 בפברואר,‏ 2017,‏ 3:36am UTC](https://meta.discourse.org/t/json-link-array-does-not-match-link-order-in-post/57205/5 "2017-02-12T03:36:47Z")

</div>

You have `link_counts`, so you could add correct ordering there, but preserve links as is in a future version of Discourse, or maybe add a ‘links\_raw’. If you would accept a new JSON property that offers links in the correct order then I can PR this.

I will have to work around this temporarily by taking cooked and taking links from that or patching Discourse.

Sam

---

_[View the full topic](https://meta.discourse.org/t/json-link-array-does-not-match-link-order-in-post/57205)._
