Roblox Studio Adds JSON Serialization for Direct Instance Manipulation

Developers can now copy and paste instances, properties, attributes, and tags as plain-text JSON to batch update objects or share code snippets.

THE SHORT ANSWER

The update introduces a 'Copy as JSON' feature that allows users to paste JSON payloads into Studio to modify properties, apply tags, and set attributes on selected instances or create new ones.

  • Direct JSON manipulation of properties, tags, and attributes
  • Batch updates for multiple selected instances
  • Uses SerializationService under the hood
  • Descendants and deep hierarchies are not yet supported

Roblox Studio users can now manipulate instances directly through plain-text JSON. The new feature, introduced by developer BitwiseAndrea, allows creators to copy and paste instances, properties, attributes, and tags. This functionality uses the same engine serialization powering SerializationService.

Users can access this via the standard 'Copy' menu, which now includes a 'Copy as Json' option. Pasting a JSON payload onto a selected instance or multiple instances allows for immediate property updates. For example, pasting {"ClassName":"Part","Anchored":"true","Name":"Renamed"} onto a Part will anchor it and rename it to "Renamed". This applies to all selected objects, enabling efficient batch updates.

The syntax supports specific prefixes for metadata. Attributes use a $ prefix, such as {"$Label":"Important"}, while tags use a . prefix, like {".Interactable":true}. The system excludes default properties from the copy payload, meaning only non-default values appear in the JSON text. For instance, a basic part created via the ribbon only lists properties like Size, Position, and CFrame, omitting standard defaults like BottomSurface or TopSurface.

However, the feature has limitations. Descendants are not supported due to string length constraints with large hierarchies. The team is working to support deeper hierarchies by the end of the year. There is also a deviation in behavior: pasting a payload with a matching ClassName into an existing object overwrites its properties rather than creating a new object, differing from standard paste behaviors.

This tool facilitates sharing small instance snippets via chat and allows developers to quickly duplicate setups or overwrite properties across a selection. It provides a low-level control method that bridges the gap between visual editing and code-based scripting.

KEEP READING

More from this desk