Understanding protocol for using it in embedded

As I see that JSON protocol is so popular, I’m planning to implement JSON protocol in order to remote control a device with embedded software.
I think, for example: {“module”:“relays”,“activate”:1}, and I think this is OK with the protocol
But, I see that, perhaps this is not the “style” of doing this, and more preferable something like: {“module”:“relays”, “method”:“activate”,“params”:{“relay_no”:1}}
Because we’re talking of an embedded system, first one is much more efficient
Can somebody give me an advice about this?
Thank you very much