I am considering moving over from JSON to Protocol Buffers for my data 
intensive applications. However, one thing that I really need and can't 
find information about is the feature of 'null' or 'nodata' inside a 
repeated field. 

Suppose I have a large vector with booleans with observations, however some 
of these are unobserved / not set. In JSON I would be able to do something 
like this:

    { "observations" : [ true, false, false, null, null, true, true, true ] 
}

This way the correct indices of the array are preserved when the object is 
serialized and then unserialized. Is there a similar 'null' notion when 
encoding "observations" as a "repeated bool" in protocol buffers?

 

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/protobuf/-/4TncVsYam0AJ.
To post to this group, send email to protobuf@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to