Wrap JSON results into dict so Flask doesn't get angry