Skip to content

Creating a data object from JSON string not working #557

Answered by ferasWb
ferasWb asked this question in Q&A
Discussion options

You must be logged in to vote

Ahh I was missing the JsonNormlizer on my DataObject

    public static function normalizers(): array
    {
        return [
            JsonNormalizer::class,
        ];
    }

sorry, I'm still new to the lib. And the section of the docs I cited, doesn't mention the need to use the Normalizer when creating from JSON.

Thanks for the quick reply and for pointing me in the right direction!

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@ferasWb
Comment options

@rubenvanassche
Comment options

@rubenvanassche
Comment options

@ferasWb
Comment options

Answer selected by ferasWb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants