I would like to keep a multi-line C code inside a JSON file something like shown in the below coding snippet.
- [
- {
- language: "C",
- value: "int c = 0;
- for (int i=0; i < 10; ++i) {
- }
- printf("Hello Angular");
- "
- },
- {
- language: "C++",
- value: "int main() {
- char* str= new char[10];}"
- }
- ]


Manav PandyaRank #166 · 14.3K reputationPosted Oct 13, 2018, 7:30 AM EDT
Meenakshi Agarwal139 reputationPosted Oct 13, 2018, 6:45 PM EDT
Meenakshi Agarwal139 reputationPosted Oct 16, 2018, 6:25 AM EDT