rsyslog / rsyslog/libfastjson

json_tokener_get_error not supported

Open
#152 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
61
Forks
35
Avg merge
21m
Merged PRs (30d)
2

Description

It seems like there's no #define mapping json_tokener_get_error to fjson_tokener_get_error in json_tokener.h. Seems like a simple enough fix unless I'm missing something, although it does seem like it would take redefining the error enum to cover all of the non-fast-json values.

Happy to submit a pull if you agree with the issue. Thanks!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting json_tokener.h and the existing mappings for fast-json functions and error values. Determine how json_tokener_get_error should be supported alongside the non-fast-json enum values; done means the function is available through the expected mapping without leaving those values uncovered.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.