Small BSON library for embedded devices