add c api, python script for dump json data