Setting global variable in register_init Lua

Hi I am loading a JSON file in register_init() function of Lua. I want to set some global variables based on the JSON data read in register_init(). Please let me know, how I solve this.