This result in error messages when trying to use the data (it appears as a very long integer)
I tested it in the Template editor with the same result:
{% set my_test_json = {
"vs": fa8807ef4000c3500003e8026700eb03686e047327240502014006020000
} %}
The value is {{ my_test_json.vs }}
UndefinedError: 'fa8807ef4000c3500003e8026700eb03686e047327240502014006020000' is undefined
Adding the missing quotes get the expected result:
{% set my_test_json = {
"vs": "fa8807ef4000c3500003e8026700eb03686e047327240502014006020000"
} %}
The value is {{ my_test_json.vs }}
The value is fa8807ef4000c3500003e8026700eb03686e047327240502014006020000
What I’m doing wrong / how to get the quotes back?
The Cayenne LPP data is packed in a JSON message format by the telecom provider (KPN) De data is in the “vs” part. Most of the other data (such as Port, SubBand, Channel) i left out of the example.
“Webhook.site” is a testsite used to test the webhook data. ~It shows all kind of info.
There I see a correct JSON package from KPN.
I don’t get it.
Who is sending the webhook with which data?
I (think I) understand you’re testing with “webhook.site” and it works, because your json is correct?
Or are you redirecting whatever is sending the webhook to “webhook.site”, in which case I don’t understand the question as the quotes are there and the json correct
Bottom-line: where is the “json:” part (which is not proper json) in your OP coming from?