aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard <q@1bpm.net>2022-09-05 00:15:17 +0100
committerRichard <q@1bpm.net>2022-09-05 00:15:17 +0100
commit9e757ec5c2bd045983fc347562b166e7ca011966 (patch)
tree381a86041790bfa7bb366e74bc9c70d6e834ec2d
parent16ec769fd0246ec446ad13903c1701d5becb545e (diff)
downloadcsound-json-9e757ec5c2bd045983fc347562b166e7ca011966.tar.gz
csound-json-9e757ec5c2bd045983fc347562b166e7ca011966.tar.bz2
csound-json-9e757ec5c2bd045983fc347562b166e7ca011966.zip
removed dysfunctional opcode
-rw-r--r--README.md11
-rw-r--r--src/opcodes.cpp8
2 files changed, 4 insertions, 15 deletions
diff --git a/README.md b/README.md
index f62d016..bb1f291 100644
--- a/README.md
+++ b/README.md
@@ -219,17 +219,6 @@ Perform a JSONPath query and obtain the resulting JSON object handle.
* **Spath** JSONPath expression
-### jsonpathrplval
-Replace a value in a location specified by the JSONPath expression *Spath*
-
- jsonpathrplval iJson, Spath, ivalue
- jsonpathrplval iJson, Spath, Svalue
-* **iJson** JSON object handle to evaluate
-* **Spath** JSONPath expression
-* **ivalue** numeric value to replace target with
-* **Svalue** string value to replace target with
-
-
### jsonpathrplvalk
Replace a value in a location specified by the JSONPath expression *Spath* at k-rate.
diff --git a/src/opcodes.cpp b/src/opcodes.cpp
index ab3cd91..26a835f 100644
--- a/src/opcodes.cpp
+++ b/src/opcodes.cpp
@@ -625,7 +625,7 @@ struct jsonpathrplvalNumericK : jsonpathrplvalNumericBase {
/*
Replace element with object by JSONPath
- */
+ NOT SUPPORTED
struct jsonpathrpl : inplug<3> {
INPLUGINIT("iSi")
void irun() {
@@ -634,11 +634,11 @@ struct jsonpathrpl : inplug<3> {
jsoncons::jsonpath::json_replace(
jsonSession->data,
std::string(args.str_data(1).data),
- std::string("DAMN") //jsonSession2->data
+ jsonSession2->data
);
}
};
-
+*/
/*
Query by JSON Pointer
@@ -980,7 +980,7 @@ void csnd::on_load(csnd::Csound *csound) {
csnd::plugin<jsonpathrplvalStringK>(csound, "jsonpathrplvalk.S", csnd::thread::ik);
csnd::plugin<jsonpathrplvalNumeric>(csound, "jsonpathrplval.i", csnd::thread::i);
csnd::plugin<jsonpathrplvalNumericK>(csound, "jsonpathrplvalk.i", csnd::thread::ik);
- csnd::plugin<jsonpathrpl>(csound, "jsonpathrpl", csnd::thread::i);
+// csnd::plugin<jsonpathrpl>(csound, "jsonpathrpl", csnd::thread::i);
csnd::plugin<jsonptr>(csound, "jsonptr", csnd::thread::i);
csnd::plugin<jsonptrhas>(csound, "jsonptrhas", csnd::thread::i);