This is what I get when I look at the document now:
“eyJ0ZXN0MSI6WyJPbmUiLCJUd28iLCJUaHJlZSJdLCJ0ZXN0MiI6WyJBIiwiQiIsIkMiXX17InRlc3RhcHBlbmQiOlsiQXBwZW5kIDEiLCJBcHBlbmQgMiJdfQ==”
Thoughts? I am just starting with Couchbase, is there something I’m missing, or is the method indeed broke?
Thanks!
-Jason
Hello,
This is due to the fact that the “append()” operation has nothing to do with JSON.
It allows you to append “bytes” at the end of the “bytes” that are store in Couchbase.
As you may know, you can store anything into Couchbase : binary, text, numbers,… and JSON,and the append/prepend is just done on the value not the “JSON”.
If you look at the String (do not json_decode) you will see something like
{
“test1”: [
“One”,
“Two”,
“Three”
],
“test2”: [
“A”,
“B”,
“C”
]
}
{
“Append 1”, "Append 2
}