I have a query in mnesia that returns a list of tuples like this:
[{"str", 10}, {"str2", 20}]
I want to convert it to json using jiffy
but it seems jiffy:encode/1
can't do it. Is there anyway to solve my problem?!
I have a query in mnesia that returns a list of tuples like this:
[{"str", 10}, {"str2", 20}]
I want to convert it to json using jiffy
but it seems jiffy:encode/1
can't do it. Is there anyway to solve my problem?!
Copyright © 2021 Jogjafile Inc.
I don't understand what you expect but first you should provide right data format: