I have a HTML5 form with Angular 2 and I have a form that takes string and integer value and sends it to my Java backend server. But for some reason my integer value is being sent as string in the JSON which passes to the server. Below is the code. I will appreciate your help!
JSONWeb Languages and Standards* HTML 5Web Development
Last Comment
Zolf
8/22/2022 - Mon
Jim Riddles
That would seem to be expected behavior, to me. My thought is you should convert the value to an integer using Integer.parseInt(), in your Java backend code.
Zolf
ASKER
Thanks for your comment. How can i change this on the client side instead of the server side. any suggestions!!