Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
JSON from MYSQL is not valid json
  • Hi, In my MYSQL database I have one field where I store a (valid) json string.
    When I try to decode it php thinks the json is not valid. When I do exactly the same thing (with the same database) in codeigniter it works fine, does anyone had this same problem?
    And does anyone have a clue how to fix it? Cheers, Harold
  • Was fixed in an IRC discussion. For other readers: the DB result was passed to a view, and decoded there. FuelPHP's default output encoding caused the json in the passed result to be malformed.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion