Replies: 1 comment 1 reply
-
Try
Is there a reason why you need to parameterize on |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm trying to implement custom cursor reading Elixir terms. The problem I unable to solve is that when I'm calling
decoder.get_result().template as<T>();
I get following error:
Attempting to access or modify 'timestamp' on a value that is not an object
The events the cursor pushed to decoder are:
begin_object key int64_value end_object
I had to write template specialisation for decor_traits:
As you can see on the line 2 I print JSON generated, so here it is:
The line 0 actually throws the exception.
The cursor implemented parses complete tree of the terms and generates vector of jsoncons::basic_staj_event in constructor.
I'll be very appreciated for your help.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions