Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 1
    +1. and the even more compact json format has no newlines at all unless they're embedded in a quoted string. which are, of course, two of the reasons why modifying json data with regexps is prone to failure - extremely fragile and vulnerable to even minor changes in the json being processed. Commented Aug 8, 2016 at 12:18
  • thanks, but it's not json, it's python dictionary. Commented Aug 12, 2016 at 12:13
  • @Borys Why not use Python then? Commented Aug 12, 2016 at 12:14
  • I would love to, but I don't know the language and I'm working on code written by somebody else Commented Aug 12, 2016 at 12:18