TrinityMH
6 months ago
192
5
Laravel

JSON

Posted 6 months ago by TrinityMH

Hello. I converted the linux file to JSON with the JQ package and wanted to display it on the website for testing but I don't know exactly how to display it correctly.

        $test = [
  {
    "Ustawienie": "#Minecraft server properties",
    "Wartosc": null
  },
  {
    "Ustawienie": "#Sun Dec 22 18:28:39 CET 2019",
    "Wartosc": null
  },
  {
    "Ustawienie": "query.port",
    "Wartosc": "27005"
  },
]

 var_dump($test);
500
It's not you, it's me.

syntax error, unexpected '{', expecting ']'

Please sign in or create an account to participate in this conversation.