Use QLatin1StringView for all the constants and define them in one
place. Parse the Json into Cbor in order to be able to retrieve UTF-8
data from it. Avoid conversion to QString wherever possible.
We could further improve QQmlJSStreamWriter to avoid temporary
allocations. Add some TODOs to this effect.
This change shows some API gaps in our various string view classes. To
work around them, we need our own QAnyStringViewUtils.
Change-Id: I41054a5057102d29e1db9e66a5998569d97382f9
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>