The Foxy forums are on the move!

We're in the process of moving our forums over to a new system, and so these forums are now read-only.
If you have a question about your store in the meantime, please don't hesitate to reach out to us via email.

json key with underscore turns into space?

RolfRolf Member
in Help edited November 2012
I am setting various custom product options and those variable names can contain an underscore. When the fc_json data is returned those key name are altered and underscores become spaces. This is annoying when you want to do something with the data because you can't do
but have to use
product.options['my original key']

Can I consider this a bug?
  • lukeluke FoxyCart Team
    Hey Rolf, thanks for posting. Is this just in 1.0? That does seem like a bug. It was my understanding that product options were only converted for display purposes, not in the actual json structure. We'll take a look.
  • @luke, it is in 0.7.2 too. I thought it was for display purposes yes, but no need to convert the actual object indeed.. if possible then it'd be great if the original data is kept intact.
  • lukeluke FoxyCart Team
    Thanks Rolf. Since this will be a breaking change, we'll have to wait for a future version to change it. My concern is that many integrations may already expect the space. We'll discuss it internally and figure out what makes sense.
Sign In or Register to comment.