-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JSONObject should maintain keys insert-order #210
Comments
JSON does not guarantee ordered keys. See the specifications referenced in the readme. You should open a bug with datatables to allow an ordered configuration using an array of key names or some such. |
looking at the documentation it already supports this: use the "columns" option |
@johnjaylward You are right. Thank you for your recommendation of DataTables manual reference. This feature is not valid according to JSON specifications. |
It would be nice to preserve keys order.
I am using datatables in my project and I need to decide columns (and columns-order) on server side. DataTables renders columns in the order it receives column-keys. Currently,
JSONObject
does not preserve key-order. Will it be as simple as changingHashMap
toLinkedHashMap
inJSONObject
.The text was updated successfully, but these errors were encountered: