Skip to content

Would it interesting to be able produce strings from the type instances?  #13

@Elisedlund

Description

@Elisedlund

Right now there's support for de-serializing types from a string, Would it be interesting to also be able to produce(by serializing) these strings from the type instances?
parser.toString(listWithInt)
parser.toString(listWithBoolean)
parser.toString(mapOfStrings)

example/usecase:
saveState {
savedState = parser.toString(mapOfStrings)
}

loadState {
mapOfStrings = parser.parse(savedState,new GenericType<Map<String,String>(){});
}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions