Replaced call of array_to_json to built in json_encode
Moved ToggleReceipt from preparse chain to parse chain