Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example on docs/example_exporter.py is wrong #8

Open
johangarzon opened this issue Jul 27, 2020 · 0 comments
Open

Example on docs/example_exporter.py is wrong #8

johangarzon opened this issue Jul 27, 2020 · 0 comments

Comments

@johangarzon
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant