broke out json_loader into a separate library