gras: use json for performance