Skip to content

Option to disable NULL_VALUE output processing#37

Merged
rayokota merged 1 commit into
masterfrom
null-value-option
May 24, 2026
Merged

Option to disable NULL_VALUE output processing#37
rayokota merged 1 commit into
masterfrom
null-value-option

Conversation

@rayokota
Copy link
Copy Markdown
Owner

@rayokota rayokota commented May 24, 2026

Adds a per-instance toggle on Jsonata that controls whether the final Utils.convert_nulls(...) pass runs on the evaluation result, mirroring the upstream jsonata-java change in [dashjoin/jsonata-java#59][1] (commit fbb6878`).

  j = jsonata.Jsonata("$")                                                                                                                                                          
  j.set_output_convert_nulls(False)                                                                                                                                                 
                                                                                                                                                                                    
  j.evaluate(jsonata.Utils.NULL_VALUE)   # → Utils.NULL_VALUE  (JSONata null)                                                                                                       
  j.evaluate(None)                       # → None              (JSONata undefined)

Fixes #25

@rayokota rayokota merged commit b6868bd into master May 24, 2026
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Differentiate "no match" from null value

1 participant