Make sure devmode data is not rendered onto json endpoints