JSON

Verifies if the input data is a valid JSON with the specified max size

Options
  • maxnumber, 10000 the maximum length of the JSON string. If it exceeds the size, we reject it
'use strict';
thorin.validate('JSON', 'inputString', {
   max: 10000
});
Do you have a question or is something missing?

You can always create a new issue on GitHub or contact one of the core founders by chat.