Skip to content

Example on docs/example_exporter.py is wrong #8

@johangarzon

Description

@johangarzon
valid_product = """{"identifier":"myawesometshirt","enabled":true,"family":"clothing","categories":[
    "master_men_blazers"],"groups":[],"parent":null,"values":{"collection":[{"data":["summer_2017"],"locale":null,
    "scope":null}],"color":[{"data":"white","locale":null,"scope":null}],"description":[{"data":"Biker jacket",
    "locale":"en_US","scope":"ecommerce"}],"ean":[{"data":"1234567946367","locale":null,"scope":null}],"material":[{
    "data":"polyester","locale":null,"scope":null}],"name":[{"data":"Biker jacket","locale":null,"scope":null}],
    "price":[{"data":[{"amount":null,"currency":"EUR"},{"amount":null,"currency":"USD"}],"locale":null,
    "scope":null}],"size":[{"data":"xl","locale":null,"scope":null}],"variation_name":[{"data":"Biker jacket 
    polyester","locale":"en_US","scope":null}]}} """
    akeneo.products.create_item(json.loads(valid_product))

throws:

json.decoder.JSONDecodeError: Invalid control character at: line 7 column 110 (char 752)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions