Comments (1)
I don't think you can replace keys. The only option I can think of is to post-process your output:
val out = $('form').serializeJSON();
// Replace oldkey with newkey
out.newkey = out.oldkey;
delete out.oldkey;
from jquery.serializejson.
Related Issues (20)
- checkboxUncheckedValue not working for me HOT 1
- Option for include parsed 0 values HOT 1
- Raise ERROR: Invalid type in value HOT 5
- Mixup between colon and semicolon HOT 2
- .serializeJSON returns undefined HOT 4
- Provide dom element into custom type function HOT 5
- Is there something wrong about array? HOT 1
- Make an es6 module? HOT 1
- Ability to use attributes other than name for building the json HOT 3
- Consider passing element name to custom type function. HOT 4
- Versioning scheme? HOT 1
- Empty SELECT multiple HOT 3
- AMAZING, THANK YOU
- It doesn't serialize type=file HOT 3
- Initialize form values from object HOT 3
- Radio Buttons are not working in >3.2.0 HOT 2
- Doesn't work with ASP.NET MVC naming conventions HOT 5
- Checking which input has the error? HOT 2
- checkboxCheckedValue option HOT 1
- Disabled elements are ignored? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jquery.serializejson.