I have a json string like below
{"customerCode":xxx,"shippingAmount":9.0,"shippingMethod":" Ground ","customerAddress":{"line1":" 1595 Spring Hill rd ","line2":"ste
I want to trim the leading space and trailing space in the json string. I used regex but doesn't seems to be working.


Sreekanth ReddyRank #726 · 3.2K reputationPosted Nov 1, 2018, 7:46 PM EDT
Umesh Kumar126 reputationPosted Nov 2, 2018, 3:06 AM EDT
Sreekanth ReddyRank #726 · 3.2K reputationPosted Nov 2, 2018, 3:11 AM EDT
Umesh Kumar126 reputationPosted Nov 2, 2018, 3:24 AM EDT
Sreekanth ReddyRank #726 · 3.2K reputationPosted Nov 2, 2018, 3:35 AM EDT