Made API default to JSON