Skip to content

JsonFormat.merge throw a exception when a 'message' field in json is null #58

@haoyanzhang

Description

@haoyanzhang

message A {
//xxx
}
message B {
optional A a=0;
}

B.Builder builder = B.newBuild();
new JsonFormat().merge("{a: null}", ExtensionRegistry.getEmptyRegistry(), builder);

Will throw exception like
Exception in thread "main" com.googlecode.protobuf.format.JsonFormat$ParseException: 1:13: Expected "{"

version 1.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions