Commit 88734cbd authored by Senthil Prabakaran's avatar Senthil Prabakaran Committed by Mouse

Main message frame in JSON

parent baa43165
...@@ -24,12 +24,13 @@ jer_encode(const asn_TYPE_descriptor_t *td, const void *sptr, ...@@ -24,12 +24,13 @@ jer_encode(const asn_TYPE_descriptor_t *td, const void *sptr,
mname = td->xml_tag; mname = td->xml_tag;
mlen = strlen(mname); mlen = strlen(mname);
ASN__CALLBACK3("\"", 1, mname, mlen, "\"", 1); ASN__CALLBACK3("{\"", 2, mname, mlen, "\":", 2);
tmper = td->op->jer_encoder(td, sptr, 1, 0, cb, app_key); tmper = td->op->jer_encoder(td, sptr, 1, 0, cb, app_key);
if(tmper.encoded == -1) return tmper; if(tmper.encoded == -1) return tmper;
er.encoded += tmper.encoded; er.encoded += tmper.encoded;
ASN__CALLBACK("}", 1);
// ASN__CALLBACK3("</", 2, mname, mlen, ">\n", xcan); // ASN__CALLBACK3("</", 2, mname, mlen, ">\n", xcan);
ASN__ENCODED_OK(er); ASN__ENCODED_OK(er);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment