Home  >  Q&A  >  body text

I wrote a query interface using Laravel in PHP to export data and output it as JSON. There are escape characters in JSON. How should I remove them?

微信图片_20220109183936.png微信图片_20220109183941.png

??929 days ago763

reply all(2)I'll reply

  • 黑白

    黑白2022-01-10 14:21:23

    It is recommended that you use model query, and set the field to an array in the corresponding model file

    reply
    0
  • autoload

    autoload2022-01-10 10:07:40

    JSON.parse() or replace

    reply
    0
  • Cancelreply