Production behaviour differed from json_decode expected output