Revert "Avoiding the incorrect JSON with regexp"

This reverts commit 2fd79959b10184c166b3ee716240b7eb25cfbdf9.