Tag:data format

  • Online JSON to yaml tool


    Online JSON to yaml tool Online JSON to yaml tool JSON: (JavaScript object notation) is a lightweight data exchange format. It is based on a subset of ECMAScript (JS specification formulated by the European Computer Association) and uses a text format completely independent of the programming language to store and represent data. YAML(/ ˈ jæm […]

  • Mongodb geonear usage record


    If necessary, query the location near a coordinate point data format It can be in the form of array or geojson <field>: [ <x>, <y> ] <field>: [<longitude>, <latitude> ] GeoJSON location: { type: “Point”, coordinates: [-73.856077, 40.848447] } List longitude first, then latitude For example, LOC field { “City”: “Beijing”, “geo_id”: 565932, “Geo_name”: “wanliuyuan […]

  • Online yaml to JSON tool


    Online yaml to JSON tool YAML:(/ ˈ jæm ə L /, the ending sound is similar to camel, which is a highly readable format used to express data serialization. Yaml refers to many other languages, including C, Python and Perl, and is inspired by the data format of XML and e-mail (RFC 2822)JSON: (JavaScript object […]

  • Fastmock supports data return in different formats


    Content type data format At the request of many users, different data formats are added continuously. The use method is very simple. Add the content type field in the request header to tell fastmock what format you need to return: For example, when using Axios as Ajax Library axios.defaults.headers.common[‘Content-Type’] = ‘application/json;charset=UTF-8’; When entering data, you […]

  • How do JSON and excel convert to each other? A small tool, JSON to excel, Excel to JSON, one click


    JSON (JavaScript object notation) is a lightweight data exchange format. It is based on a subset of ECMAScript (JS specification formulated by W3C) and uses a text format completely independent of the programming language to store and represent data. The concise and clear hierarchy makes JSON an ideal data exchange language. It is easy for […]

  • The most rigorous Ajax request encapsulation


    1、 Encapsulating AjaxAjax, the most rigorous encapsulation, can copy references directlyajax.js function sendAjax(obj){ /First determine whether the URL is passed in if(!obj.url){ /No pass Throw new error (‘address required ‘) / throw custom error } /After the URL is passed in, you need to verify whether the URL is a string if(Object.prototype.toString.call(obj.url) !== ‘[object String]’){ […]

  • Laravel creates an exception handling response format suitable for API


    After laravel catches the exception globally, it will convert the exception into the corresponding data format and return it to the user. If you want the specified data format to be appropriate, we just need to rewrite the handling method after exception capture. Exception handling process Illuminate\Foundation\Exception\HandlerThe render method in is used to convert an […]

  • HTML5 API formdata — using


    FormData brief introduction XMLHttpRequest Level 2 adds a new interface, formdata. Using formdata object, we can simulate a series of form controls with some key value pairs through JavaScript. We can also use the send() method of XMLHttpRequest to submit the “form” asynchronously. Compared with ordinary Ajax, the biggest advantage of using formdata is that […]

  • xlswriter+yield+websocket


    xlswriter+yield+websocket This is a high-performance Excel / CSV Library Based on xlwriter + yield, which integrates websocket to push the progress of Excel operation.This class inherits from the extension of xlswriter and encapsulates some common methods while maintaining the usage of base class.Xlswriter document https://xlswriter-docs.viest.me/Source code: https://github.com/yzh0325/xl…Why use xlwriter to operate excel? Due to memory […]

  • Talking about Python: consolidating the foundation of Python


    As we all know, JSON object is undoubtedly the most commonly used lightweight data exchange format for back-end programming and front-end data rendering, and it is also a text format independent of programming language. Generally speaking, there are two main operations for JSON object in Python programming, one is to convert Python object to JSON […]

  • JQuery sends Ajax


    POST $(function(){ //Request data (object | array) const param = { Name: “Li Kui,”, age: 20 }; $.ajax({ Type: “post”, // request mode contentType: “application/json; Charset = UTF-8 “, // the media type of the request parameter url: ” http://localhost : 8080 / xxx / xxx / “, // request address Data: JSON. Stringify (param), […]

  • Broadcasting of remote sensing resources (2) | 11 classic remote sensing data sets


    Abstract: semantic segmentation is the most commonly used method for land classification based on remote sensing images. Following the previous training course of land classification model, several major open remote sensing data sets are organized. Original: hyperai super nerve Key words: remote sensing data set ﹣ semantic segmentation ﹣ machine vision In the last issue《Remote […]