Umesh Kumar

Umesh Kumar

  • NA
  • 126
  • 30.9k

Trim leading and trailing space from Json string

Nov 1 2018 11:25 PM
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. 

Answers (5)