Outputting JSON data file content to console
Hello,
Just need to quickly get the contents of a JSON data file from a plugin to be output from a console command.

For example, i type a command "myplugin getdata" into console
and it would show the content of the oxide\data\myplugin.json file

Been doing some research but not found any simple way to do this... yet
Great thanks in advance
Currently there is not any way, that I'm aware of, to read or write raw JSON in config/data files (using the official API).

Most of the existing API for data file interaction is now documented here: https://umod.org/documentation/umod/api/data-files

I have also submitted a pull request to add the ability to read/write raw JSON.  We may add it pending further discussion.
In response to Calytic ():
Currently there is not any way, that I'm aware of, to read or write raw JSON in config/data files (u...
There's nothing preventing you from reading it and deserializing it to then serialize it and output it as the command reply.
In response to Ryan ():
There's nothing preventing you from reading it and deserializing it to then serialize it and output...
Kindly have time to provide an example? :)
There is no official API to do this, thus the Pull Request I linked.  You can use Newtonsoft.Json but you shouldn't, which is why I didn't mention it.