move json to core