Skip to content

using _json for compile-time JSON strings.#2536

Merged
lemire merged 1 commit intomasterfrom
string_literal
Nov 3, 2025
Merged

using _json for compile-time JSON strings.#2536
lemire merged 1 commit intomasterfrom
string_literal

Conversation

@lemire
Copy link
Member

@lemire lemire commented Nov 2, 2025

   auto my_thing = R"( 

         {"attribute1": 1,  "attribute2": 2}

   )"_json;

  // my_thing.attribute1 == 1
  // my_thing.attribute2 == 2

@lemire lemire merged commit 2b9c897 into master Nov 3, 2025
156 checks passed
@lemire lemire deleted the string_literal branch November 3, 2025 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants