Beim Konvertieren in das JSON Format werden Datumsattribute in Strings ohne Zeitangabe konvertiert.
When converted to JSON format, date attributes will be converted to strings which do not include a time.
4D Datumsangaben, die von oder in das JSON Format konvertiert werden, berücksichtigen standardmäßig die Zeitzone des konvertierenden Rechners. Dieses Prinzip entspricht der Standardoperation von Java-Script.
By default, when 4D dates are converted to and from JSON strings, they take into account the time zone of the machine where the conversion took place (in conformity with JavaScript).
Das JSON Format ermöglicht insbesondere, über einen Web Browser auf 4D Anwendungen zuzugreifen (Daten und Struktur).
More particularly, JSON format makes it possible to access 4D databases (data and structure) using a Web browser.
Nur die Werte der definierten Felder werden in das JSON Array eingefügt.
Only the values of the fields defined are included in the JSON array.
Wenn undefined zurückgegeben wird, wird die Eigenschaft nicht in das JSON hinzugefügt.
Man kann an dem Script schön sehen, wie das JSON aus einem dynamischen Objekt gebildet wird.
You can see on the script how the JSON is formed from a dynamic object.
Zur einfachen Integration nutzen wir das JSON Format.
Fügen Sie das JSON Object samt erforderlicher Keys ein (per Tastatureingabe oder indem Sie es hineinkopieren) und fügen Sie es so zum Dropdown hinzu.
Type in or copy over your JSON object with the necessary keys, to add it to the dropdown.
Der beste Weg, dies zu tun, ist, eine Kombination aus cURL und einem anderen Tool, wie jq, zu verwenden, um das JSON aus den Antworten zu analysieren.
The best way to do this is to use a combination of cURL and another tool, such as jq, to parse the JSON from the responses.
Statt jedesmal neu zu verpacken, verpacke ich beim Sichern die Felder in JSON und hebe das JSON im Datensatz aus.
Instead of packing on the fly, I'm going to pack the record-content into JSON when saving and store that JSON as field.
Ist das JSON Schema nicht gültig, gibt 4D ein Objekt Null zurück und generiert einen Fehler, der sich über eine Fehlerverwaltungsmethode abfangen lässt.
If the JSON schema is not valid, 4D returns a Null object and throws an error that can be caught by an on error call method.
Diese Funktion unterstützt Felder vom Typ Objekt: Daten dieser Felder werden automatisch in das JSON Format konvertiert (Werte von Bildattrituten werden als"[object Picture]" Strings konvertiert).
This command supports Object type fields: the data of these fields is automatically converted to the JSON format (picture attribute values are converted as"[object Picture]" strings).
In der ersten Stufe haben wir die Beispielanwendung ohne die show und list Funktionen entwickelt, da man anhand der AJAX Abfragen gegen das JSON API besser sieht, wie CouchDB als Datenbank funktioniert.
We'll build the first iteration of the example application without using show or list, because writing Ajax queries against the JSON API is a better way to teach CouchDB as a database.