Move the get_current_json functions to separate module
Added make xcompile to ensure function calls.