Skip to content

non static function calls do not work if object is loaded from JSON using JSON.parse() #30564

Closed
@prashantchoudhary

Description

@prashantchoudhary

Playground Link: Here

If a class is parsed from JSON data. Instance methods cannot be access anymore. Method calls fail silently without any logging. It works fine if class is created using "new ClassName()". Also works fine for static method calls.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Working as IntendedThe behavior described is the intended behavior; this is not a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions