DMS-XS-Parser
view release on metacpan or search on metacpan
jbuf_putcstr(j, type);
jbuf_puts(j, "\",\n", 3);
jbuf_indent(j, indent + 1);
jbuf_puts(j, "\"value\": \"", 10);
write_value(j, v);
jbuf_puts(j, "\"\n", 2);
jbuf_indent(j, indent);
jbuf_putc(j, '}');
}
/* write_value callbacks â write the inner string of a tagged scalar
* (no surrounding quotes; the caller already wrote them). */
static void wv_bool(jbuf *j, const dms_value *v) {
jbuf_putcstr(j, v->u.b ? "true" : "false");
}
static void wv_int(jbuf *j, const dms_value *v) {
jbuf_int64(j, v->u.i);
}
static void wv_float(jbuf *j, const dms_value *v) {
( run in 0.741 second using v1.01-cache-2.11-cpan-140bd7fdf52 )