json2protobuf_string() and json2protobuf_file() implementations