Skip to content

encode/decode methods (serialization) #23

@DiegoPino

Description

@DiegoPino

What?

The current parser is great. It would also be great to have a serializer/deserializer in the tone of json_encode/json_decode with options. If course this would only work consistently for a subset and would not be able to bring a full specs KDL doc into a PHP structure/object/arrays and then back without loosing/discarding data (e.g comments)

Since the logic/nodes etc (in my not too well versed in KDL opinion) could be seen as similar to an XML document serialization (with better typed data, etc), maybe some type of decorator type of processing (again going back to you can do that in PHP from XML to JSON) could work?

Just wondering if this is something others may want or the parse suffices the need. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions