Change 8550

matt_attaway (Matt Attaway)
Matt Attaway committed this change into //guest/matt_attaway/p4nodeapi/src/cpp
Request Review
Download .zip
Improve control character handling in JSON strings

Previously we stripped out all newlines and left in numerous other control
characters that would result in errors with JSON.parse(). With this change
all control characters are kept and escaped following the guidelines at:

http://json.org
  • Files 1
  • Comments 0
1 edited 0 added 0 deleted
basicuser.cc#2
Loading...
Tip: Use n and p to cycle through the changes.