{"action":"created","issue":{"url":"https://api.github.com/repos/grpc/grpc/issues/2819","labels_url":"https://api.github.com/repos/grpc/grpc/issues/2819/labels{/name}","comments_url":"https://api.github.com/repos/grpc/grpc/issues/2819/comments","events_url":"https://api.github.com/repos/grpc/grpc/issues/2819/events","html_url":"https://github.com/grpc/grpc/pull/2819","id":99472422,"number":2819,"title":"Make the NodeJS plugin recognise data ripped from JSON files correctly.","user":{"login":"AmandaCameron","id":114638,"avatar_url":"https://avatars.githubusercontent.com/u/114638?v=3","gravatar_id":"","url":"https://api.github.com/users/AmandaCameron","html_url":"https://github.com/AmandaCameron","followers_url":"https://api.github.com/users/AmandaCameron/followers","following_url":"https://api.github.com/users/AmandaCameron/following{/other_user}","gists_url":"https://api.github.com/users/AmandaCameron/gists{/gist_id}","starred_url":"https://api.github.com/users/AmandaCameron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AmandaCameron/subscriptions","organizations_url":"https://api.github.com/users/AmandaCameron/orgs","repos_url":"https://api.github.com/users/AmandaCameron/repos","events_url":"https://api.github.com/users/AmandaCameron/events{/privacy}","received_events_url":"https://api.github.com/users/AmandaCameron/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/grpc/grpc/labels/cla:%20yes","name":"cla: yes","color":"009800"}],"state":"open","locked":false,"assignee":{"login":"murgatroid99","id":961599,"avatar_url":"https://avatars.githubusercontent.com/u/961599?v=3","gravatar_id":"","url":"https://api.github.com/users/murgatroid99","html_url":"https://github.com/murgatroid99","followers_url":"https://api.github.com/users/murgatroid99/followers","following_url":"https://api.github.com/users/murgatroid99/following{/other_user}","gists_url":"https://api.github.com/users/murgatroid99/gists{/gist_id}","starred_url":"https://api.github.com/users/murgatroid99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/murgatroid99/subscriptions","organizations_url":"https://api.github.com/users/murgatroid99/orgs","repos_url":"https://api.github.com/users/murgatroid99/repos","events_url":"https://api.github.com/users/murgatroid99/events{/privacy}","received_events_url":"https://api.github.com/users/murgatroid99/received_events","type":"User","site_admin":false},"milestone":null,"comments":8,"created_at":"2015-08-06T16:18:21Z","updated_at":"2015-08-22T16:34:36Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/grpc/grpc/pulls/2819","html_url":"https://github.com/grpc/grpc/pull/2819","diff_url":"https://github.com/grpc/grpc/pull/2819.diff","patch_url":"https://github.com/grpc/grpc/pull/2819.patch"},"body":"I had to make this change to make my gRPC .proto files play nice with the NodeJS plugin, as they are in a non-root namespace, which seems to generate a tree like so:\r\n\r\n    Namespace: ROOT\r\n      - Message: example\r\n        - Message: apis\r\n          - Service: FooService\r\n\r\nThis maybe a bug in the ProtoBuf.js json-generator, but it was actively causing problems for me with my experiments, so I decided to fork and fix it."},"comment":{"url":"https://api.github.com/repos/grpc/grpc/issues/comments/133724756","html_url":"https://github.com/grpc/grpc/pull/2819#issuecomment-133724756","issue_url":"https://api.github.com/repos/grpc/grpc/issues/2819","id":133724756,"user":{"login":"AmandaCameron","id":114638,"avatar_url":"https://avatars.githubusercontent.com/u/114638?v=3","gravatar_id":"","url":"https://api.github.com/users/AmandaCameron","html_url":"https://github.com/AmandaCameron","followers_url":"https://api.github.com/users/AmandaCameron/followers","following_url":"https://api.github.com/users/AmandaCameron/following{/other_user}","gists_url":"https://api.github.com/users/AmandaCameron/gists{/gist_id}","starred_url":"https://api.github.com/users/AmandaCameron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AmandaCameron/subscriptions","organizations_url":"https://api.github.com/users/AmandaCameron/orgs","repos_url":"https://api.github.com/users/AmandaCameron/repos","events_url":"https://api.github.com/users/AmandaCameron/events{/privacy}","received_events_url":"https://api.github.com/users/AmandaCameron/received_events","type":"User","site_admin":false},"created_at":"2015-08-22T16:34:36Z","updated_at":"2015-08-22T16:34:36Z","body":"I'm having a hard time reproducing this now without reproducing my full stack of grpc services and .proto files I was toying with.\r\n\r\nHowever, I believe it stems from importing another package with a totally sidderent namespace ( say, google.protobuf ) into a other namespace ( darkdna.services ) or similar. I'm willing to admit I'm a fish out of water at this point though, so if you'd prefer I can try and type up my collected thoughts into an issue instead, as this seems I may have been mis-understanding the use of pbjs in the grpc-expected toolchain somehow.\r\n\r\nSorry to waste your time. :s"}}