-
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
172 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
on: | ||
push: | ||
# Sequence of patterns matched against refs/tags | ||
tags: | ||
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 | ||
|
||
name: Create Release | ||
|
||
jobs: | ||
build: | ||
name: Create Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: Release ${{ github.ref }} | ||
body: | | ||
See the CHANGELOG.md | ||
draft: false | ||
prerelease: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Changelog | ||
|
||
## Develop | ||
|
||
## 1.3.0 | ||
|
||
- Added support for inline `/* */` comments | ||
|
||
## v1.2.0 | ||
|
||
- Added `lwjson_find_ex` function to accept token pointer as starting reference | ||
- Update of the docs for *find* | ||
- Remove unused reset and add free function for future dynamic allocation support | ||
|
||
## v1.1.0 | ||
|
||
- Improved find algorithm to match array index | ||
- Added more test code | ||
|
||
## v1.0.2 | ||
|
||
- Fix wrong parsing of hex in some corner cases | ||
- Add more robust code to handle errorneous JSON input | ||
|
||
## v1.0.1 | ||
|
||
- Added test code | ||
- Fixed bug with improper string parsing | ||
|
||
## v1.0.0 | ||
|
||
- First stable release | ||
- Compliant with RFC 4627 for JSON | ||
- Full features JSON parser |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,7 @@ | |
* This file is part of LwJSON - Lightweight JSON format parser. | ||
* | ||
* Author: Tilen MAJERLE <[email protected]> | ||
* Version: v1.2.0 | ||
* Version: v1.3.0 | ||
*/ | ||
#ifndef LWJSON_HDR_OPTS_H | ||
#define LWJSON_HDR_OPTS_H | ||
|
@@ -40,5 +40,7 @@ | |
* Open "include/lwjson/lwjson_opt.h" and | ||
* copy & replace here settings you want to change values | ||
*/ | ||
#define LWJSON_CFG_JSON5 1 | ||
#define LWJSON_CFG_COMMENTS 1 | ||
|
||
#endif /* LWJSON_HDR_OPTS_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,7 @@ | |
* This file is part of LwJSON - Lightweight JSON format parser. | ||
* | ||
* Author: Tilen MAJERLE <[email protected]> | ||
* Version: v1.2.0 | ||
* Version: v1.3.0 | ||
*/ | ||
#ifndef LWJSON_HDR_H | ||
#define LWJSON_HDR_H | ||
|
@@ -84,7 +84,6 @@ typedef LWJSON_CFG_INT_TYPE lwjson_int_t; | |
*/ | ||
typedef struct lwjson_token { | ||
struct lwjson_token* next; /*!< Next token on a list */ | ||
struct lwjson_token* parent; /*!< Parent token (think about optimization and remove this one?) */ | ||
lwjson_type_t type; /*!< Token type */ | ||
const char* token_name; /*!< Token name (if exists) */ | ||
size_t token_name_len; /*!< Length of token name (this is needed to support const input strings to parse) */ | ||
|
@@ -185,7 +184,7 @@ lwjson_get_val_string(const lwjson_token_t* token, size_t* str_len) { | |
} | ||
|
||
/** | ||
* \brief Get length of string for \ref LWJSON_TOKEN_STRING token type | ||
* \brief Get length of string for \ref LWJSON_TYPE_STRING token type | ||
* \param[in] token: token with string type | ||
* \return Length of string in units of bytes | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,7 @@ | |
* This file is part of LwJSON - Lightweight JSON format parser. | ||
* | ||
* Author: Tilen MAJERLE <[email protected]> | ||
* Version: v1.2.0 | ||
* Version: v1.3.0 | ||
*/ | ||
#ifndef LWJSON_HDR_OPT_H | ||
#define LWJSON_HDR_OPT_H | ||
|
@@ -72,6 +72,15 @@ extern "C" { | |
#define LWJSON_CFG_INT_TYPE long long | ||
#endif | ||
|
||
/** | ||
* \brief Enables `1` or disables `0` support for inline comments | ||
* | ||
* Default set to `0` to be JSON compliant | ||
*/ | ||
#ifndef LWJSON_CFG_COMMENTS | ||
#define LWJSON_CFG_COMMENTS 0 | ||
#endif | ||
|
||
/** | ||
* \} | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,7 @@ | |
* This file is part of LwJSON - Lightweight JSON format parser. | ||
* | ||
* Author: Tilen MAJERLE <[email protected]> | ||
* Version: v1.2.0 | ||
* Version: v1.3.0 | ||
*/ | ||
#ifndef LWJSON_HDR_OPTS_H | ||
#define LWJSON_HDR_OPTS_H | ||
|
Oops, something went wrong.