diff --git a/lib/fluent/config/literal_parser.rb b/lib/fluent/config/literal_parser.rb index 9337f175f5..d165c728ff 100644 --- a/lib/fluent/config/literal_parser.rb +++ b/lib/fluent/config/literal_parser.rb @@ -254,7 +254,7 @@ def scan_json(is_array) buffer << line_buffer + "\n" line_buffer = "" else - if @ss.exist?(/\{[^}]+\}/) + if @ss.exist?(/^\{[^}]+\}/) # if it's interpolated string skip(/\{/) line_buffer << eval_embedded_code(scan_embedded_code)