Thanks to visit codestin.com
Credit goes to github.com

Skip to content

String template is proposed for JSON string without any need #323

@apanys

Description

@apanys

Hi,

for this code:

DATA(lv_json) = `{"a":"b", ` && `"c":{}}`.

abap-cleaner proposes without any need string templates:

DATA(lv_json) = |\{"a":"b", "c":\{\}\}|.

On one side, the unnecessary string templates causes runtime costs and on the other
side the JSON syntax becomes quite hard to read because of the escaping of the bracelets.

Kind regards
André

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions