pschichtel / JavaCAN

A simple JNI wrapper for the socketcan API provided by the Linux kernel. As it is wrapping a Linux Kernel API, it is intended for use on Linux only.
https://schich.tel
MIT License
52 stars 21 forks source link

JSON Serialization of Frames #62

Open ztword opened 3 weeks ago

ztword commented 3 weeks ago

Hi, Brother !!! How do I parse CAN message ? How does the message go to JSON ?

pschichtel commented 3 weeks ago

Are you interested in serialization from/to json? JavaCAN doesn't come with any mapping logic and it's objects probably won't work well with reflection-based mapping. You'd have to write your own custom mapping classes.

I wonder if the new structure I used for j1939 works for reflection based mappers, maybe I can provide something similar for raw frames.