apache / apache/apisix

help request: How can we maintain the original order of the JSON parameters in the request body after processing the API request via Apisix

Open
#13,417 2 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
Lua
Stars
17.1k
Forks
2.9k
Avg merge
3d 16h
Merged PRs (30d)
63

Description

### Description

How can we maintain the original order of the JSON parameters in the request body after processing the API request via Apisix? For example, the original request parameters are: {"b":11,"a":2}. Now, after processing via Apisix, sometimes they become {"a":2,"b":11}. We need to keep the original order {"b":11,"a":2}.

### Environment

- APISIX version (run `apisix version`):
- Operating system (run `uname -a`):
- OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
- etcd version, if relevant (run `curl http://127.0.0.1:9090/v1/server_info`):
- APISIX Dashboard version, if relevant:
- Plugin runner version, for issues related to plugin runners:
- LuaRocks version, for installation issues (run `luarocks --version`):

Contributor guide

Open the contributing guide

Research direction

No source file or test is identified. Start by reproducing the request through APISIX with {"b":11,"a":2}, then trace the request-body processing path to identify where ordering changes. Done means confirming whether APISIX can preserve the original parameter order and documenting the resulting behavior or required change.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.