Hongmu Notes

🔗 Concatenate arrays into strings

Concatenate the JSON array into a line of text using custom connectors.

Concatenate arrays into strings

Instructions for use

  • Paste the JSON array, fill in the connectors and click "Splice"
  • If you add a backslash and n in the connector, it will become a real line break.
  • Array elements must be wrapped in double quotes. Single quotes will fail to parse.

Array splicing tool

The splicing results usually need to be pasted into code or documents immediately, and whether the copying is smooth directly affects efficiency.

📌 Copy the content taken by the button

Copy the complete spliced text in the result box (including the connectors and line breaks you set) at once; when the result is empty, you will be prompted to splice first to avoid pasting blank spaces into the target position.

🔒 Dealing with location and privacy

The parsing and splicing are all done locally in the browser. There is no Internet access, no uploading, and no writing to local storage. It will be cleared after refreshing. When the results are exported to local files, they are only generated on your own computer, and the files only contain the result text.

📌 Splicing rules

The tool first uses JSON parsing to read the input into an array, and then uses the connector you fill in to connect the elements in sequence: leave the connector blank to connect directly, fill in ordinary symbols and insert them one by one. When a backslash plus n appears in the connector, it will be replaced with a real newline before participating in the connection. If the parsing fails, the result box will display a parsing error message, the status line will prompt a format problem, and the input content will remain unchanged; when the array is empty, the result will be an empty string, and the status line will still prompt that 0 elements have been spliced.

All keywords and tutorials 12

❓ FAQ

Can I copy only part of it?
Yes. Manually select the desired fragment in the results box and copy it.
Will copying change the content?
No. Copy only reads the result box.