Skip to content

Commit f24f779

Browse files
committed
debug node: fix for when jsonata returns an integer and not a string
1 parent 3c57fdd commit f24f779

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/ered_nodes.erl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,10 @@ jstr(Str) when is_binary(Str) ->
136136
Str;
137137
jstr(Str) when is_atom(Str) ->
138138
atom_to_binary(Str);
139+
jstr(Str) when is_integer(Str) ->
140+
integer_to_binary(Str);
141+
jstr(Str) when is_float(Str) ->
142+
float_to_binary(Str);
139143
jstr(Str) ->
140144
list_to_binary(lists:flatten(Str)).
141145

0 commit comments

Comments
 (0)