sfmc-devtools icon indicating copy to clipboard operation
sfmc-devtools copied to clipboard

[BUG] replacing MIDs in JSONs break buildTemplate

Open JoernBerkefeld opened this issue 1 year ago • 0 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Current Behavior

if your markets contain a number and that number happens to match a value directly assigned to a JSON attribute, the result will be invalid json which in turn breaks buildTemplate.

already seen this issue on user and on asset

Expected Behavior

such fields should simply be auto-stringified first to avoid the issue.

Steps To Reproduce

  1. Go to '...'
  2. Click on '....'
  3. Run '...'
  4. See error...

Version

4.3.4

Environment

  • OS:
  • Node:
  • npm:

Participation

  • [X] I am willing to submit a pull request for this issue.

Additional comments

No response

JoernBerkefeld avatar Mar 12 '23 13:03 JoernBerkefeld