C implementation: jksn_proxy_size
JavaScript: JKSNProxy.getSize
C implementation: optimize value returning in jksn_dump_value