siddhi-io / siddhi-map-json

Extension which is used to convert JSON message to/from Siddhi events
https://siddhi-io.github.io/siddhi-map-json/
Apache License 2.0
12 stars 42 forks source link

Is there a switch parameter to decide whether to fill in undefine when the attribute is null? #90

Open weiping-code opened 4 years ago

weiping-code commented 4 years ago

Description: Is there a switch parameter to decide whether to fill in undefine when the attribute is null? I need null attributes to stay null inside json.

https://github.com/siddhi-io/siddhi-map-json/blob/master/component/src/main/java/io/siddhi/extension/map/json/sinkmapper/JsonSinkMapper.java#L366

niveathika commented 4 years ago

@weipsys As of now no, that is not possible.. However, it will be an easy fix, please feel free to send a PR.