Etiqueta: json

Storing your models in a json file rather than in database (single or few lines recording) can be a good option. This package saves you to create a table for a ridiculous amount of lines, improves the data recovery performances, and allows you to store and access to your models from a json files as…

Storing your models in a json file rather than in database (single or few lines recording) can be a good option. This package saves you to create a table for a ridiculous amount of lines, improves the data recovery performances, and...

Validate json data with json-schema

Validate json data with json-schema README $validator = THJsonValidatorJsonValidator::create(); $data = json_decode($dataJsonString); $validator->validate($data, (object)["$ref" => "file://" . __DIR__."/data-schema.json"])); $decoder = THJsonValidatorJsonDecoder::create(); $data = $decoder->decode($dataJsonString, (object)["$ref" => "file://" . __DIR__."/data-schema.json"])); Source...