mirror of
https://github.com/allankoechke/jwt-cpp.git
synced 2026-11-30 10:18:40 +00:00
* Use operator[] instead of front to support jsoncpp Replace the `front()` with `[0]` as front is not supported by jsoncpp on array types. Signed-off-by: Omar Mohamed <mohamed.omar67492@gmail.com> * Revert "Use operator[] instead of front to support jsoncpp" This reverts commit dfa7d29dae9d3b3cc1d8a434bc8e5ca330e6202f. * Implement `front()` in jsoncpp array_type Signed-off-by: Omar Mohamed <mohamed.omar67492@gmail.com> * Check if array_type has a front() method Signed-off-by: Omar Mohamed <mohamed.omar67492@gmail.com> * Add `front()` to jsoncons array_type * Remove non-const overloads of front() Signed-off-by: Omar Mohamed <mohamed.omar67492@gmail.com> * Fix check for front() in array_type Signed-off-by: Omar Mohamed <mohamed.omar67492@gmail.com> * Use std::decay Signed-off-by: Omar Mohamed <mohamed.omar67492@gmail.com> * fix example to print array value * expose base class ctors * update as_array traits helper * fixup linter --------- Signed-off-by: Omar Mohamed <mohamed.omar67492@gmail.com> Co-authored-by: Chris Mc <prince.chrismc@gmail.com>