Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

229
Vistas
Passing JSON object with a link using QRCode in Javascript

I want to generate a QRCode that has a link and a JSON object with it but it should be hidden. So this will generate a basic qrcode that has a link:

var QRCode = require('qrcode')

QRCode.toString('http://www.example.org/mypath',{type:'terminal'}, function (err, url) {
  console.log(url)
})

If I have a Get to that path I will be able to use a query to add some additional information like so:

QRCode.toString('http://www.example.org/mypath?id=123abc&option=yes',{type:'terminal'}, function (err, url) {
  console.log(url)
})

But I would like to send the id hidden in a JSON format or something not as a visible field.The purpose is that the client can generate a QRCode from it's account but after that I want him to be able to login with just the qrcode and pass some information like the option he chose.

To be more clear.He will be able to generate 3 qrcodes from his account to a question with options:Yes,No,Don't Know.He will have to scan the code with his phone(not logged in or from my app) and send him to my website with the option selected to the question.

So the question is how can I generate qrcode with a link but also a JSON object with details that are hidden until accessed by my site. I hope it makes sens ,thank you!

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

I guess you can't,you can pass text,json whatever but both link that sends you somewhere and something else not.You can pass queries to the link but if you want something hidden in the qr you can't.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda