Hello 👋,
I'm building an application where I receive a JSON schema that is stored in the database.
To avoid future heavy computation, I resolve schema references before saving it. I'm using this package and actually, I'm doing it like this:
$resolvedSchema = json_decode(json_encode(Schema::import(json_decode(json_encode($schema)))), true);
It works well but I was wondering if there was a better way to do it since using a lot fo json_decode and json_encode does not seems optimal.
Hello 👋,
I'm building an application where I receive a JSON schema that is stored in the database.
To avoid future heavy computation, I resolve schema references before saving it. I'm using this package and actually, I'm doing it like this:
It works well but I was wondering if there was a better way to do it since using a lot fo
json_decodeandjson_encodedoes not seems optimal.