#include <ArduinoJson.h>

void setup() {
  Serial.begin(9600);
  
  // Example JSON string
  char jsonString[] = "{\"SSID\" : \"wolves\", \"Password\" : \"wolves\", \"SecretCode\" : \"GaJa\", \"HallId\" : \"1\"}";
  
  // Parse JSON
  StaticJsonDocument<200> doc;
  DeserializationError error = deserializeJson(doc, jsonString);
  
  // Check for parsing errors
  if (error) {
    Serial.print(F("deserializeJson() failed: "));
    Serial.println(error.c_str());
    return;
  }
  
  // Access parsed values
  String ssidA = doc["SSID"];
  String passwordA = doc["Password"];
  String hallIDA = doc["HallId"];
  String secretCodeA = doc["SecretCode"];
  
  // Print parsed values
  Serial.print("ssidA: ");
  Serial.println(ssidA);
  Serial.print("passwordA: ");
  Serial.println(passwordA);
  Serial.print("hallIDA: ");
  Serial.println(hallIDA);
  Serial.print("secretCodeA: ");
  Serial.println(secretCodeA);
}

void loop() {
  // Nothing to do here
}