c implementation of gason