parser json REFACTOR code snippet to function
parser json REFACTOR code snippet to function

The changes apply to the lydjson_parse_opaq function.

sartura/libyang,CESNET/libyang,sartura/libyang,sartura/libyang,CESNET/libyang,sartura/libyang,sartura/libyang,sartura/libyang