I'd like to store the category hierarchy in the database, but instead of serializing specific objects from this library, I'd like to json encode them without having to manually extracting the properties individually into an array, e.g. (pseudo code):
I'd like to store the category hierarchy in the database, but instead of serializing specific objects from this library, I'd like to json encode them without having to manually extracting the properties individually into an array, e.g. (pseudo code):
I'd like some way to just get the category array as objects which can then be json_encode'd and shoved into the db.
Is this possible, or is manual parsing the only solution?