New answers tagged

1

The way I see it, virtually all of that over-engineered convolution can be scrapped. You only need to take special action when you process the JsonData value. It needs to be decoded, flattened, and merged with the other non-encoded data. Simply use something like this: (Demo) $post = []; foreach ($_POST as $key => $value) { if ($key !== 'JsonData') { ...


-1

This is going to fix digits indentation. The fix can be managed by supplying a better regex but regex are a pain in the ... :) #pragma once #include <string> #include <regex> #include <vector> #include <cctype> namespace { bool first_digit_done = false; } class JSONPretify { public: JSONPretify(const std::string& json) :...


1

First off, the file jsonArray.js doesn't contain "JSON". It's a JavaScript source code file containing an JavaScript array literal which in turn contains JavaScript object literals. And since it's not JSON, you could theoretically put functions into the objects: { alt: "clearValueIcon", // Quotes around key are not needed, since it's ...


Top 50 recent answers are included