How to right align text to a point loaded from JSON?

Hi,

I would like to place text from a json file right aligned to a point.
The following only works if there is no spaces in the “Hello There” text.

#place(
  dx: 1cm,
  dy: 1cm,
  box(width: 0pt)[
    #align(right)[Hellothere]
  ],
)

I don’t quite follow your thought, but this might be helpful:

#place(dx: 1cm, dy: 1cm, box(
  width: 0pt,
  align(
    right,
    box(width: 100em)[Hello there],
  ),
))

Or equivalently:

#place(dx: 1cm, dy: 1cm, {
  show: box.with(width: 0pt)
  set align(right)
  box(width: 100em)[Hello there]
})

Full result

// `stroke` and `outset` are for debugging.
#block(stroke: green, width: 5cm, height: 5cm, {
  place(dx: 4cm, dy: 1cm, {
    show: box.with(width: 0pt, stroke: red + 2pt, outset: (y: 5pt))
    set align(right)
    box(width: 100em, stroke: teal)[Hello there]
  })
})