You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 13, 2026. It is now read-only.
This function can be used in a pre-commit hook to validate that the input is a valid JSON document.
functionvalidateJSON(object){// A delete is a type of put in Riak so check and see what this// operation is doing and pass over objects being deletedif(obj.values[0]['metadata']['X-Riak-Deleted']){returnobj;}try{Riak.mapValuesJson(object);returnobject;}catch(e){return{"fail":"Object is not JSON"};}}