Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

427
Visualizações
How to export a mysql SELECT to JSON, not as escaped text?

After trying different things for hours now it's starting to drive me nuts. So I really hope somebody here could help me with this.

I have a test select query which has only one field that is the result of JSON_OBJECT() function, so that should be JSON (no text). But whatever I try, phpMyAdmin keeps escaping the json keys on an export of the result grid. Which is obviously not what I want when exporting to JSON.

Just a simple example, this: SELECT JSON_OBJECT("key", "value") as json, results into this: screenshot and exports to something like this:

{
    "json": "{\"key\": \"value\"}"
}

Which is obviously no valid json as key should be a key, not part of a string.

Is there somebody out there that could please tell me how to export json data as real json without acting like the output of JSON_OBJECT() is text, so without the wrong escapes?

Thanks in advance!!

Using: - MariaDb 10.4.10 - phpMyAdmin 4.9.2

over 4 years ago · Santiago Trujillo
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda